Lines Matching refs:keylen
27 int id, int iter, int keylen,
64 int iter, int keylen, unsigned char *key, in pkcs12_gen_gost_mac_key() argument
69 if (keylen != TK26_MAC_KEY_LEN) { in pkcs12_gen_gost_mac_key()
116 int keylen = 0; in PBMAC1_PBKDF2_HMAC() local
125 keylen = ASN1_INTEGER_get(pbkdf2_param->keylength); in PBMAC1_PBKDF2_HMAC()
142 ASN1_INTEGER_get(pbkdf2_param->iter), kdf_md, keylen, key) <= 0) { in PBMAC1_PBKDF2_HMAC()
146 ret = keylen; in PBMAC1_PBKDF2_HMAC()
172 int keylen = 0; in pkcs12_gen_mac() local
215 keylen = EVP_MD_get_size(md); in pkcs12_gen_mac()
217 if (keylen <= 0) in pkcs12_gen_mac()
222 keylen = PBMAC1_PBKDF2_HMAC(p12->authsafes->ctx.libctx, p12->authsafes->ctx.propq, in pkcs12_gen_mac()
224 if (keylen < 0) in pkcs12_gen_mac()
230 keylen = TK26_MAC_KEY_LEN; in pkcs12_gen_mac()
232 keylen, key, md)) { in pkcs12_gen_mac()
252 iter, keylen, key, hmac_md); in pkcs12_gen_mac()
265 iter, keylen, key, md, in pkcs12_gen_mac()
273 || !HMAC_Init_ex(hmac, key, keylen, md, NULL) in pkcs12_gen_mac()
378 int id, int iter, int keylen, in pkcs12_pbmac1_pbkdf2_key_gen() argument
383 md_type, keylen, out); in pkcs12_pbmac1_pbkdf2_key_gen()
447 int keylen = 0; in PKCS12_set_pbmac1_pbkdf2() local
463 keylen = EVP_MD_get_size(md_type); in PKCS12_set_pbmac1_pbkdf2()
486 alg = PKCS5_pbkdf2_set(iter, salt ? salt : known_salt, saltlen, prf_nid, keylen); in PKCS12_set_pbmac1_pbkdf2()