Lines Matching refs:salt_len
979 size_t pass_len, salt_len = 0; in PHP_FUNCTION() local
984 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sssl|lb", &algo, &pass, &pass_len, &salt, &salt_len, &… in PHP_FUNCTION()
994 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION()
1038 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION()
1039 memcpy(computed_salt, (unsigned char *) salt, salt_len); in PHP_FUNCTION()
1045 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION()
1046 computed_salt[salt_len + 1] = (unsigned char) ((i & 0xFF0000) >> 16); in PHP_FUNCTION()
1047 computed_salt[salt_len + 2] = (unsigned char) ((i & 0xFF00) >> 8); in PHP_FUNCTION()
1048 computed_salt[salt_len + 3] = (unsigned char) (i & 0xFF); in PHP_FUNCTION()
1050 php_hash_hmac_round(digest, ops, context, K1, computed_salt, (zend_long) salt_len + 4); in PHP_FUNCTION()
1075 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION()
1283 size_t password_len, salt_len; in PHP_FUNCTION() local
1286 …(ZEND_NUM_ARGS(), "lssl", &algorithm, &password, &password_len, &salt, &salt_len, &l_bytes) == FAI… in PHP_FUNCTION()
1296 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION()
1298 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION()
1299 if (salt_len < SALT_SIZE) { in PHP_FUNCTION()
1300 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION()
1302 salt_len = SALT_SIZE; in PHP_FUNCTION()
1333 ops->hash_update(context, (unsigned char *)padded_salt, salt_len); in PHP_FUNCTION()