Lines Matching refs:salt_len
995 size_t pass_len, salt_len = 0; in PHP_FUNCTION() local
1001 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sssl|lbh", &algo, &pass, &pass_len, &salt, &salt_len, … in PHP_FUNCTION()
1011 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION()
1055 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION()
1056 memcpy(computed_salt, (unsigned char *) salt, salt_len); in PHP_FUNCTION()
1062 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION()
1063 computed_salt[salt_len + 1] = (unsigned char) ((i & 0xFF0000) >> 16); in PHP_FUNCTION()
1064 computed_salt[salt_len + 2] = (unsigned char) ((i & 0xFF00) >> 8); in PHP_FUNCTION()
1065 computed_salt[salt_len + 3] = (unsigned char) (i & 0xFF); in PHP_FUNCTION()
1067 php_hash_hmac_round(digest, ops, context, K1, computed_salt, (zend_long) salt_len + 4); in PHP_FUNCTION()
1092 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION()
1293 size_t password_len, salt_len; in PHP_FUNCTION() local
1296 …(ZEND_NUM_ARGS(), "lssl", &algorithm, &password, &password_len, &salt, &salt_len, &l_bytes) == FAI… in PHP_FUNCTION()
1306 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION()
1308 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION()
1309 if (salt_len < SALT_SIZE) { in PHP_FUNCTION()
1310 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION()
1312 salt_len = SALT_SIZE; in PHP_FUNCTION()
1343 ops->hash_update(context, (unsigned char *)padded_salt, salt_len); in PHP_FUNCTION()