Lines Matching refs:algo
89 const char *algo, in php_openssl_argon2_compute_hash() argument
114 if ((kdf = EVP_KDF_fetch(NULL, algo, NULL)) == NULL) { in php_openssl_argon2_compute_hash()
135 …string *php_openssl_argon2_hash(const zend_string *password, zend_array *options, const char *algo) in php_openssl_argon2_hash() argument
152 if (!php_openssl_argon2_compute_hash(algo, version, memlimit, iterlimit, threads, in php_openssl_argon2_hash()
163 algo, version, memlimit, iterlimit, threads, ZSTR_VAL(salt64), ZSTR_VAL(hash64)); in php_openssl_argon2_hash()
219 …php_openssl_argon2_verify(const zend_string *password, const zend_string *digest, const char *algo) in php_openssl_argon2_verify() argument
233 if (php_openssl_argon2_compute_hash(algo, version, memlimit, iterlimit, threads, in php_openssl_argon2_verify()
322 zend_string *password, *algo, *digest; in PHP_FUNCTION() local
326 Z_PARAM_STR(algo) in PHP_FUNCTION()
332 if (strcmp(ZSTR_VAL(algo), "argon2i") && strcmp(ZSTR_VAL(algo), "argon2id")) { in PHP_FUNCTION()
337 digest = php_openssl_argon2_hash(password, options, ZSTR_VAL(algo)); in PHP_FUNCTION()
350 zend_string *password, *algo, *digest; in PHP_FUNCTION() local
353 Z_PARAM_STR(algo) in PHP_FUNCTION()
358 if (strcmp(ZSTR_VAL(algo), "argon2i") && strcmp(ZSTR_VAL(algo), "argon2id")) { in PHP_FUNCTION()
363 RETURN_BOOL(php_openssl_argon2_verify(password, digest, ZSTR_VAL(algo))); in PHP_FUNCTION()