Lines Matching refs:salt
92 const unsigned char *salt, size_t salt_len, in php_openssl_argon2_compute_hash() argument
110 *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SALT, (void *)salt, salt_len); in php_openssl_argon2_compute_hash()
139 unsigned char hash[PHP_OPENSSL_HASH_SIZE+1], salt[PHP_OPENSSL_SALT_SIZE+1]; in php_openssl_argon2_hash() local
148 if (RAND_bytes(salt, PHP_OPENSSL_SALT_SIZE) <= 0) { in php_openssl_argon2_hash()
153 …ZSTR_VAL(password), ZSTR_LEN(password), salt, PHP_OPENSSL_SALT_SIZE, hash, PHP_OPENSSL_HASH_SIZE))… in php_openssl_argon2_hash()
159 salt64 = php_base64_encode_ex(salt, PHP_OPENSSL_SALT_SIZE, PHP_BASE64_NO_PADDING); in php_openssl_argon2_hash()
173 uint32_t *threads, zend_string **salt, zend_string **hash) in php_openssl_argon2_extract() argument
193 if (salt && hash) { in php_openssl_argon2_extract()
212 *salt = php_base64_decode((unsigned char *)salt64, strlen(salt64)); in php_openssl_argon2_extract()
222 zend_string *salt, *hash, *new; in php_openssl_argon2_verify() local
228 …if (FAILURE == php_openssl_argon2_extract(digest, &version, &memlimit, &iterlimit, &threads, &salt… in php_openssl_argon2_verify()
234 ZSTR_VAL(password), ZSTR_LEN(password), (unsigned char *)ZSTR_VAL(salt), in php_openssl_argon2_verify()
235 ZSTR_LEN(salt), (unsigned char *)ZSTR_VAL(new), ZSTR_LEN(new))) { in php_openssl_argon2_verify()
240 zend_string_release(salt); in php_openssl_argon2_verify()