Home
last modified time | relevance | path

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

/third_party/openssl/crypto/asn1/
Dp5_pbev2.c154 ASN1_OCTET_STRING *osalt = NULL; in PKCS5_pbkdf2_set() local
158 if ((osalt = ASN1_OCTET_STRING_new()) == NULL) in PKCS5_pbkdf2_set()
161 kdf->salt->value.octet_string = osalt; in PKCS5_pbkdf2_set()
166 if ((osalt->data = OPENSSL_malloc(saltlen)) == NULL) in PKCS5_pbkdf2_set()
169 osalt->length = saltlen; in PKCS5_pbkdf2_set()
172 memcpy(osalt->data, salt, saltlen); in PKCS5_pbkdf2_set()
173 else if (RAND_bytes(osalt->data, saltlen) <= 0) in PKCS5_pbkdf2_set()