Lines Matching refs:iter
27 int id, int iter, int keylen,
47 *piter = p12->mac->iter; in PKCS12_get0_mac()
64 int iter, int keylen, unsigned char *key, in pkcs12_gen_gost_mac_key() argument
73 if (!PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, in pkcs12_gen_gost_mac_key()
142 ASN1_INTEGER_get(pbkdf2_param->iter), kdf_md, keylen, key) <= 0) { in PBMAC1_PBKDF2_HMAC()
161 int id, int iter, int n, in pkcs12_gen_mac() argument
170 int saltlen, iter; in pkcs12_gen_mac() local
189 if (p12->mac->iter == NULL) in pkcs12_gen_mac()
190 iter = 1; in pkcs12_gen_mac()
192 iter = ASN1_INTEGER_get(p12->mac->iter); in pkcs12_gen_mac()
231 if (!pkcs12_gen_gost_mac_key(pass, passlen, salt, saltlen, iter, in pkcs12_gen_mac()
252 iter, keylen, key, hmac_md); in pkcs12_gen_mac()
265 iter, keylen, key, md, in pkcs12_gen_mac()
345 unsigned char *salt, int saltlen, int iter, in PKCS12_set_mac() argument
355 if (!iter) in PKCS12_set_mac()
356 iter = PKCS12_DEFAULT_ITER; in PKCS12_set_mac()
357 if (PKCS12_setup_mac(p12, iter, salt, saltlen, md_type) == PKCS12_ERROR) { in PKCS12_set_mac()
378 int id, int iter, int keylen, in pkcs12_pbmac1_pbkdf2_key_gen() argument
382 return PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, in pkcs12_pbmac1_pbkdf2_key_gen()
386 static int pkcs12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen, in pkcs12_setup_mac() argument
396 if (iter > 1) { in pkcs12_setup_mac()
397 if ((p12->mac->iter = ASN1_INTEGER_new()) == NULL) { in pkcs12_setup_mac()
401 if (!ASN1_INTEGER_set(p12->mac->iter, iter)) { in pkcs12_setup_mac()
430 int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen, in PKCS12_setup_mac() argument
433 return pkcs12_setup_mac(p12, iter, salt, saltlen, EVP_MD_get_type(md_type)); in PKCS12_setup_mac()
437 unsigned char *salt, int saltlen, int iter, in PKCS12_set_pbmac1_pbkdf2() argument
460 if (iter == 0) in PKCS12_set_pbmac1_pbkdf2()
461 iter = PKCS12_DEFAULT_ITER; in PKCS12_set_pbmac1_pbkdf2()
486 alg = PKCS5_pbkdf2_set(iter, salt ? salt : known_salt, saltlen, prf_nid, keylen); in PKCS12_set_pbmac1_pbkdf2()
490 if (pkcs12_setup_mac(p12, iter, salt ? salt : known_salt, saltlen, in PKCS12_set_pbmac1_pbkdf2()