Lines Matching defs:key_len

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