Lines Matching refs:salt_len
722 size_t algo_len, pass_len, salt_len = 0; in PHP_FUNCTION() local
727 …ZEND_NUM_ARGS(), "sssl|lb", &algo, &algo_len, &pass, &pass_len, &salt, &salt_len, &iterations, &le… in PHP_FUNCTION()
751 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION()
752 …ef(NULL, E_WARNING, "Supplied salt is too long, max of INT_MAX - 4 bytes: %zd supplied", salt_len); in PHP_FUNCTION()
785 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION()
786 memcpy(computed_salt, (unsigned char *) salt, salt_len); in PHP_FUNCTION()
792 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION()
793 computed_salt[salt_len + 1] = (unsigned char) ((i & 0xFF0000) >> 16); in PHP_FUNCTION()
794 computed_salt[salt_len + 2] = (unsigned char) ((i & 0xFF00) >> 8); in PHP_FUNCTION()
795 computed_salt[salt_len + 3] = (unsigned char) (i & 0xFF); in PHP_FUNCTION()
797 php_hash_hmac_round(digest, ops, context, K1, computed_salt, (zend_long) salt_len + 4); in PHP_FUNCTION()
822 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION()
1039 size_t password_len, salt_len; in PHP_FUNCTION() local
1042 …(ZEND_NUM_ARGS(), "lssl", &algorithm, &password, &password_len, &salt, &salt_len, &l_bytes) == FAI… in PHP_FUNCTION()
1052 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION()
1054 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION()
1055 if (salt_len < SALT_SIZE) { in PHP_FUNCTION()
1056 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION()
1058 salt_len = SALT_SIZE; in PHP_FUNCTION()
1086 ops->hash_update(context, (unsigned char *)padded_salt, salt_len); in PHP_FUNCTION()