Lines Matching refs:salt
22 ASN1_SIMPLE(SCRYPT_PARAMS, salt, ASN1_OCTET_STRING),
31 static X509_ALGOR *pkcs5_scrypt_set(const unsigned char *salt, size_t saltlen,
40 const unsigned char *salt, int saltlen, in PKCS5_pbe2_set_scrypt() argument
113 pbe2->keyfunc = pkcs5_scrypt_set(salt, saltlen, keylen, N, r, p); in PKCS5_pbe2_set_scrypt()
148 static X509_ALGOR *pkcs5_scrypt_set(const unsigned char *salt, size_t saltlen, in pkcs5_scrypt_set() argument
162 if (ASN1_STRING_set(sparam->salt, salt, saltlen) == 0) in pkcs5_scrypt_set()
165 if (salt == NULL && RAND_bytes(sparam->salt->data, saltlen) <= 0) in pkcs5_scrypt_set()
216 unsigned char *salt, key[EVP_MAX_KEY_LENGTH]; in PKCS5_v2_scrypt_keyivgen() local
262 salt = sparam->salt->data; in PKCS5_v2_scrypt_keyivgen()
263 saltlen = sparam->salt->length; in PKCS5_v2_scrypt_keyivgen()
264 if (EVP_PBE_scrypt(pass, passlen, salt, saltlen, N, r, p, 0, key, keylen) in PKCS5_v2_scrypt_keyivgen()