Lines Matching full:saltlen
73 int saltlen, iter;
83 saltlen = p12->mac->salt->length;
94 if(!PKCS12_key_gen (pass, passlen, salt, saltlen, PKCS12_MAC_ID, iter,
129 unsigned char *salt, int saltlen, int iter, const EVP_MD *md_type)
135 if (PKCS12_setup_mac (p12, iter, salt, saltlen, md_type) ==
152 int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen,
166 if (!saltlen) saltlen = PKCS12_SALT_LEN;
167 p12->mac->salt->length = saltlen;
168 if (!(p12->mac->salt->data = OPENSSL_malloc (saltlen))) {
173 if (RAND_pseudo_bytes (p12->mac->salt->data, saltlen) < 0)
176 else memcpy (p12->mac->salt->data, salt, saltlen);