Lines Matching refs:maclen
157 unsigned char *mac, unsigned int *maclen, in pkcs12_gen_mac() argument
276 || !HMAC_Final(hmac, mac, maclen)) { in pkcs12_gen_mac()
289 unsigned char *mac, unsigned int *maclen) in PKCS12_gen_mac() argument
291 return pkcs12_gen_mac(p12, pass, passlen, mac, maclen, NID_undef, NID_undef, NULL); in PKCS12_gen_mac()
298 unsigned int maclen; in PKCS12_verify_mac() local
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()
336 if ((maclen != (unsigned int)ASN1_STRING_length(macoct)) in PKCS12_verify_mac()
337 || CRYPTO_memcmp(mac, ASN1_STRING_get0_data(macoct), maclen) != 0) in PKCS12_verify_mac()
349 unsigned int maclen; in PKCS12_set_mac() local
364 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, NID_undef, NID_undef, NULL)) { in PKCS12_set_mac()
369 if (!ASN1_OCTET_STRING_set(macoct, mac, maclen)) { in PKCS12_set_mac()
441 unsigned int maclen; in PKCS12_set_pbmac1_pbkdf2() local
513 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, in PKCS12_set_pbmac1_pbkdf2()
519 if (!ASN1_OCTET_STRING_set(macoct, mac, maclen)) { in PKCS12_set_pbmac1_pbkdf2()