Lines Matching defs:salt
74 unsigned char key[EVP_MAX_MD_SIZE], *salt;
83 salt = p12->mac->salt->data;
84 saltlen = p12->mac->salt->length;
96 if (!PKCS12_key_gen(pass, passlen, salt, saltlen, PKCS12_MAC_ID, iter,
135 unsigned char *salt, int saltlen, int iter,
143 if (PKCS12_setup_mac(p12, iter, salt, saltlen, md_type) == PKCS12_ERROR) {
159 int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen,
176 if ((p12->mac->salt->data = OPENSSL_malloc(saltlen)) == NULL) {
180 p12->mac->salt->length = saltlen;
181 if (!salt) {
182 if (RAND_pseudo_bytes(p12->mac->salt->data, saltlen) < 0)
185 memcpy(p12->mac->salt->data, salt, saltlen);