Lines Matching refs:ZSTR_VAL
63 if (ZSTR_VAL(buffer)[pos] == '+') { in php_password_salt_to64()
65 } else if (ZSTR_VAL(buffer)[pos] == '=') { in php_password_salt_to64()
69 ret[pos] = ZSTR_VAL(buffer)[pos]; in php_password_salt_to64()
87 if (FAILURE == php_random_bytes_throw(ZSTR_VAL(buffer), ZSTR_LEN(buffer))) { in php_password_make_salt()
94 if (php_password_salt_to64(ZSTR_VAL(buffer), ZSTR_LEN(buffer), length, ZSTR_VAL(ret)) == FAILURE) { in php_password_make_salt()
101 ZSTR_VAL(ret)[length] = 0; in php_password_make_salt()
117 const char *h = ZSTR_VAL(hash); in php_password_bcrypt_valid()
130 sscanf(ZSTR_VAL(hash), "$2y$" ZEND_LONG_FMT "$", &cost); in php_password_bcrypt_get_info()
146 sscanf(ZSTR_VAL(hash), "$2y$" ZEND_LONG_FMT "$", &old_cost); in php_password_bcrypt_needs_rehash()
156 …zend_string *ret = php_crypt(ZSTR_VAL(password), (int)ZSTR_LEN(password), ZSTR_VAL(hash), (int)ZST… in php_password_bcrypt_verify()
184 if (memchr(ZSTR_VAL(password), '\0', ZSTR_LEN(password))) { in php_password_bcrypt_hash()
202 ZSTR_VAL(salt)[ZSTR_LEN(salt)] = 0; in php_password_bcrypt_hash()
204 hash = zend_string_concat2(hash_format, hash_format_len, ZSTR_VAL(salt), ZSTR_LEN(salt)); in php_password_bcrypt_hash()
209 …result = php_crypt(ZSTR_VAL(password), (int)ZSTR_LEN(password), ZSTR_VAL(hash), (int)ZSTR_LEN(hash… in php_password_bcrypt_hash()
241 const char *p = ZSTR_VAL(hash); in extract_argon2_parameters()
356 ZSTR_VAL(password), in php_password_argon2_hash()
358 ZSTR_VAL(salt), in php_password_argon2_hash()
360 ZSTR_VAL(out), in php_password_argon2_hash()
362 ZSTR_VAL(encoded), in php_password_argon2_hash()
377 ZSTR_VAL(encoded)[ZSTR_LEN(encoded)] = 0; in php_password_argon2_hash()
384 …return ARGON2_OK == argon2_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password), Argon2_i… in php_password_argon2i_verify()
403 …return ARGON2_OK == argon2_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password), Argon2_i… in php_password_argon2id_verify()
518 ident = ZSTR_VAL(hash) + 1; in php_password_algo_extract_ident()