Lines Matching defs:salt
72 unsigned char key[EVP_MAX_MD_SIZE], *salt;
81 salt = p12->mac->salt->data;
82 saltlen = p12->mac->salt->length;
90 if(!PKCS12_key_gen (pass, passlen, salt, saltlen, PKCS12_MAC_ID, iter,
125 unsigned char *salt, int saltlen, int iter, const EVP_MD *md_type)
131 if (PKCS12_setup_mac (p12, iter, salt, saltlen, md_type) ==
148 int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen,
163 p12->mac->salt->length = saltlen;
164 if (!(p12->mac->salt->data = OPENSSL_malloc (saltlen))) {
168 if (!salt) {
169 if (RAND_pseudo_bytes (p12->mac->salt->data, saltlen) < 0)
172 else memcpy (p12->mac->salt->data, salt, saltlen);