Lines Matching refs:passlen
25 static int pkcs12_pbmac1_pbkdf2_key_gen(const char *pass, int passlen,
62 static int pkcs12_gen_gost_mac_key(const char *pass, int passlen, in pkcs12_gen_gost_mac_key() argument
73 if (!PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, in pkcs12_gen_gost_mac_key()
109 const char *pass, int passlen, in PBMAC1_PBKDF2_HMAC() argument
141 if (PKCS5_PBKDF2_HMAC(pass, passlen, pbkdf2_salt->data, pbkdf2_salt->length, in PBMAC1_PBKDF2_HMAC()
156 static int pkcs12_gen_mac(PKCS12 *p12, const char *pass, int passlen, in pkcs12_gen_mac() argument
159 int (*pkcs12_key_gen)(const char *pass, int passlen, in pkcs12_gen_mac()
223 pass, passlen, macalg, key); in pkcs12_gen_mac()
231 if (!pkcs12_gen_gost_mac_key(pass, passlen, salt, saltlen, iter, in pkcs12_gen_mac()
251 int res = (*pkcs12_key_gen)(pass, passlen, salt, saltlen, PKCS12_MAC_ID, in pkcs12_gen_mac()
264 if (!PKCS12_key_gen_utf8_ex(pass, passlen, salt, saltlen, PKCS12_MAC_ID, in pkcs12_gen_mac()
288 int PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen, in PKCS12_gen_mac() argument
291 return pkcs12_gen_mac(p12, pass, passlen, mac, maclen, NID_undef, NID_undef, NULL); in PKCS12_gen_mac()
295 int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen) in PKCS12_verify_mac() argument
323 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, md_nid, NID_undef, NULL)) { in PKCS12_verify_mac()
330 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, NID_undef, NID_undef, NULL)) { in PKCS12_verify_mac()
344 int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen, in PKCS12_set_mac() argument
364 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, NID_undef, NID_undef, NULL)) { in PKCS12_set_mac()
376 static int pkcs12_pbmac1_pbkdf2_key_gen(const char *pass, int passlen, in pkcs12_pbmac1_pbkdf2_key_gen() argument
382 return PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, in pkcs12_pbmac1_pbkdf2_key_gen()
436 int PKCS12_set_pbmac1_pbkdf2(PKCS12 *p12, const char *pass, int passlen, in PKCS12_set_pbmac1_pbkdf2() argument
513 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, in PKCS12_set_pbmac1_pbkdf2()