Lines Matching refs:key_len
58 size_t key_len, size_t num_elem, in linux_af_alg_hash_vector() argument
71 if (key && setsockopt(s, SOL_ALG, ALG_SET_KEY, key, key_len) < 0) { in linux_af_alg_hash_vector()
171 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_md5_vector() argument
174 return linux_af_alg_hash_vector("hmac(md5)", key, key_len, num_elem, in hmac_md5_vector()
179 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, in hmac_md5() argument
182 return hmac_md5_vector(key, key_len, 1, &data, &data_len, mac); in hmac_md5()
186 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha1_vector() argument
189 return linux_af_alg_hash_vector("hmac(sha1)", key, key_len, num_elem, in hmac_sha1_vector()
194 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len, in hmac_sha1() argument
197 return hmac_sha1_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha1()
201 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha256_vector() argument
204 return linux_af_alg_hash_vector("hmac(sha256)", key, key_len, num_elem, in hmac_sha256_vector()
209 int hmac_sha256(const u8 *key, size_t key_len, const u8 *data, in hmac_sha256() argument
212 return hmac_sha256_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha256()
216 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha384_vector() argument
219 return linux_af_alg_hash_vector("hmac(sha384)", key, key_len, num_elem, in hmac_sha384_vector()
224 int hmac_sha384(const u8 *key, size_t key_len, const u8 *data, in hmac_sha384() argument
227 return hmac_sha384_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha384()
240 size_t key_len) in crypto_hash_init() argument
293 if (key && key_len && in crypto_hash_init()
294 setsockopt(ctx->s, SOL_ALG, ALG_SET_KEY, key, key_len) < 0) { in crypto_hash_init()
415 linux_af_alg_skcipher(const char *alg, const u8 *key, size_t key_len) in linux_af_alg_skcipher() argument
428 if (setsockopt(skcipher->s, SOL_ALG, ALG_SET_KEY, key, key_len) < 0) { in linux_af_alg_skcipher()
757 int omac1_aes_vector(const u8 *key, size_t key_len, size_t num_elem, in omac1_aes_vector() argument
760 return linux_af_alg_hash_vector("cmac(aes)", key, key_len, num_elem, in omac1_aes_vector()
860 size_t key_len) in crypto_cipher_init() argument
896 ctx->skcipher = linux_af_alg_skcipher(name, key, key_len); in crypto_cipher_init()