Lines Matching refs:ZSTR_LEN

79 	const size_t len = ZSTR_LEN(hash);  in php_password_determine_algo()
113 if (ZSTR_LEN(buffer) < out_len) { in php_password_salt_to64()
143 if (FAILURE == php_random_bytes_silent(ZSTR_VAL(buffer), ZSTR_LEN(buffer))) { in php_password_make_salt()
150 if (php_password_salt_to64(ZSTR_VAL(buffer), ZSTR_LEN(buffer), length, ZSTR_VAL(ret)) == FAILURE) { in php_password_make_salt()
306 …RETURN_BOOL(ARGON2_OK == argon2_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password), Arg… in PHP_FUNCTION()
315 …nd_string *ret = php_crypt(ZSTR_VAL(password), (int)ZSTR_LEN(password), ZSTR_VAL(hash), (int)ZSTR_… in PHP_FUNCTION()
321 if (ZSTR_LEN(ret) != ZSTR_LEN(hash) || ZSTR_LEN(hash) < 13) { in PHP_FUNCTION()
330 for (i = 0; i < ZSTR_LEN(hash); i++) { in PHP_FUNCTION()
380 if (ZEND_SIZE_T_INT_OVFL(ZSTR_LEN(buffer))) { in php_password_get_salt()
386 if (ZSTR_LEN(buffer) < required_salt_len) { in php_password_get_salt()
387 …php_error_docref(NULL, E_WARNING, "Provided salt is too short: %zd expecting %zd", ZSTR_LEN(buffer… in php_password_get_salt()
392 if (php_password_salt_is_alphabet(ZSTR_VAL(buffer), ZSTR_LEN(buffer)) == FAILURE) { in php_password_get_salt()
394 …if (php_password_salt_to64(ZSTR_VAL(buffer), ZSTR_LEN(buffer), required_salt_len, ZSTR_VAL(salt)) … in php_password_get_salt()
395 php_error_docref(NULL, E_WARNING, "Provided salt is too short: %zd", ZSTR_LEN(buffer)); in php_password_get_salt()
450 ZSTR_VAL(salt)[ZSTR_LEN(salt)] = 0; in PHP_FUNCTION()
452 hash = zend_string_alloc(ZSTR_LEN(salt) + hash_format_len, 0); in PHP_FUNCTION()
454 ZSTR_VAL(hash)[hash_format_len + ZSTR_LEN(salt)] = 0; in PHP_FUNCTION()
459 …result = php_crypt(ZSTR_VAL(password), (int)ZSTR_LEN(password), ZSTR_VAL(hash), (int)ZSTR_LEN(hash… in PHP_FUNCTION()
466 if (ZSTR_LEN(result) < 13) { in PHP_FUNCTION()
522 (uint32_t)ZSTR_LEN(salt), in PHP_FUNCTION()
523 ZSTR_LEN(out) in PHP_FUNCTION()
535 ZSTR_LEN(password), in PHP_FUNCTION()
537 ZSTR_LEN(salt), in PHP_FUNCTION()
539 ZSTR_LEN(out), in PHP_FUNCTION()
555 ZSTR_VAL(encoded)[ZSTR_LEN(encoded)] = 0; in PHP_FUNCTION()