Lines Matching refs:key_len

101 static int gnutls_hmac_vector(int algo, const u8 *key, size_t key_len,  in gnutls_hmac_vector()  argument
114 if (gcry_md_setkey(hd, key, key_len) != GPG_ERR_NO_ERROR) { in gnutls_hmac_vector()
128 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_md5_vector() argument
131 return gnutls_hmac_vector(GCRY_MD_MD5, key, key_len, num_elem, addr, in hmac_md5_vector()
136 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, in hmac_md5() argument
139 return hmac_md5_vector(key, key_len, 1, &data, &data_len, mac); in hmac_md5()
143 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha1_vector() argument
146 return gnutls_hmac_vector(GCRY_MD_SHA1, key, key_len, num_elem, addr, in hmac_sha1_vector()
151 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len, in hmac_sha1() argument
154 return hmac_sha1_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha1()
160 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha256_vector() argument
163 return gnutls_hmac_vector(GCRY_MD_SHA256, key, key_len, num_elem, addr, in hmac_sha256_vector()
168 int hmac_sha256(const u8 *key, size_t key_len, const u8 *data, in hmac_sha256() argument
171 return hmac_sha256_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha256()
179 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha384_vector() argument
182 return gnutls_hmac_vector(GCRY_MD_SHA384, key, key_len, num_elem, addr, in hmac_sha384_vector()
187 int hmac_sha384(const u8 *key, size_t key_len, const u8 *data, in hmac_sha384() argument
190 return hmac_sha384_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha384()
198 int hmac_sha512_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha512_vector() argument
201 return gnutls_hmac_vector(GCRY_MD_SHA512, key, key_len, num_elem, addr, in hmac_sha512_vector()
206 int hmac_sha512(const u8 *key, size_t key_len, const u8 *data, in hmac_sha512() argument
209 return hmac_sha512_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha512()
404 size_t key_len) in crypto_cipher_init() argument
423 if (key_len == 24) in crypto_cipher_init()
425 else if (key_len == 32) in crypto_cipher_init()
443 if (key_len == 5) in crypto_cipher_init()
460 if (gcry_cipher_setkey(ctx->enc, key, key_len) != GPG_ERR_NO_ERROR || in crypto_cipher_init()
461 gcry_cipher_setkey(ctx->dec, key, key_len) != GPG_ERR_NO_ERROR) { in crypto_cipher_init()