Home
last modified time | relevance | path

Searched refs:maclen (Results 1 – 4 of 4) sorted by relevance

/external/openssl/crypto/pkcs12/
Dp12_mutl.c68 unsigned char *mac, unsigned int *maclen) in PKCS12_gen_mac() argument
103 HMAC_Final(&hmac, mac, maclen); in PKCS12_gen_mac()
112 unsigned int maclen; in PKCS12_verify_mac() local
117 if (!PKCS12_gen_mac (p12, pass, passlen, mac, &maclen)) { in PKCS12_verify_mac()
121 if ((maclen != (unsigned int)p12->mac->dinfo->digest->length) in PKCS12_verify_mac()
122 || memcmp (mac, p12->mac->dinfo->digest->data, maclen)) return 0; in PKCS12_verify_mac()
132 unsigned int maclen; in PKCS12_set_mac() local
140 if (!PKCS12_gen_mac (p12, pass, passlen, mac, &maclen)) { in PKCS12_set_mac()
144 if (!(M_ASN1_OCTET_STRING_set (p12->mac->dinfo->digest, mac, maclen))) { in PKCS12_set_mac()
Dp12_npas.c112 unsigned int maclen; in newpass_p12() local
159 if(!PKCS12_gen_mac(p12, newpass, -1, mac, &maclen)) goto saferr; in newpass_p12()
161 if(!ASN1_OCTET_STRING_set(macnew, mac, maclen)) goto saferr; in newpass_p12()
Dpkcs12.h226 unsigned char *mac, unsigned int *maclen);
/external/openssl/include/openssl/
Dpkcs12.h226 unsigned char *mac, unsigned int *maclen);