Lines Matching refs:PHP_MAX_SALT_LEN
68 #define PHP_MAX_SALT_LEN 2 macro
72 #undef PHP_MAX_SALT_LEN
73 #define PHP_MAX_SALT_LEN 9 macro
77 #undef PHP_MAX_SALT_LEN
78 #define PHP_MAX_SALT_LEN 12 macro
82 #undef PHP_MAX_SALT_LEN
83 #define PHP_MAX_SALT_LEN 60 macro
87 #undef PHP_MAX_SALT_LEN
88 #define PHP_MAX_SALT_LEN 123 macro
95 #ifndef PHP_MAX_SALT_LEN
96 #define PHP_MAX_SALT_LEN 2 macro
105 REGISTER_LONG_CONSTANT("CRYPT_SALT_LENGTH", PHP_MAX_SALT_LEN, CONST_CS | CONST_PERSISTENT); in PHP_MINIT_FUNCTION()
152 char salt[PHP_MAX_SALT_LEN + 1]; in PHP_FUNCTION()
156 salt[0] = salt[PHP_MAX_SALT_LEN] = '\0'; in PHP_FUNCTION()
160 memset(&salt[1], '$', PHP_MAX_SALT_LEN - 1); in PHP_FUNCTION()
167 memcpy(salt, salt_in, MIN(PHP_MAX_SALT_LEN, salt_in_len)); in PHP_FUNCTION()
173 strncpy(salt, "$1$", PHP_MAX_SALT_LEN); in PHP_FUNCTION()
176 strncpy(&salt[11], "$", PHP_MAX_SALT_LEN - 11); in PHP_FUNCTION()
183 salt_in_len = MIN(PHP_MAX_SALT_LEN, salt_in_len); in PHP_FUNCTION()
249 char output[PHP_MAX_SALT_LEN + 1]; in PHP_FUNCTION()
251 memset(output, 0, PHP_MAX_SALT_LEN + 1); in PHP_FUNCTION()
264 memset(output, 0, PHP_MAX_SALT_LEN + 1); in PHP_FUNCTION()