Lines Matching refs:PHP_MAX_SALT_LEN
96 output = emalloc(PHP_MAX_SALT_LEN); in php_crypt()
98 crypt_res = php_sha512_crypt_r(password, salt, output, PHP_MAX_SALT_LEN); in php_crypt()
100 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); in php_crypt()
105 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); in php_crypt()
111 output = emalloc(PHP_MAX_SALT_LEN); in php_crypt()
113 crypt_res = php_sha256_crypt_r(password, salt, output, PHP_MAX_SALT_LEN); in php_crypt()
115 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); in php_crypt()
120 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); in php_crypt()
129 char output[PHP_MAX_SALT_LEN + 1]; in php_crypt()
131 memset(output, 0, PHP_MAX_SALT_LEN + 1); in php_crypt()
135 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN + 1); in php_crypt()
139 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN + 1); in php_crypt()
192 char salt[PHP_MAX_SALT_LEN + 1]; in PHP_FUNCTION()
202 salt[0] = salt[PHP_MAX_SALT_LEN] = '\0'; in PHP_FUNCTION()
206 memset(&salt[1], '$', PHP_MAX_SALT_LEN - 1); in PHP_FUNCTION()
207 memcpy(salt, salt_in, MIN(PHP_MAX_SALT_LEN, salt_in_len)); in PHP_FUNCTION()
209 salt_in_len = MIN(PHP_MAX_SALT_LEN, salt_in_len); in PHP_FUNCTION()