| Server IP : 87.98.231.4 / Your IP : 216.73.217.178 [ Web Server : Apache System : Linux webm007.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : grupmartgn ( 667608) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/grupmartgn/elanartcrafts/plugins/vmpayment/bizum/apiRedsys/ |
Upload File : |
<?php
include 'hash.php';
/**
* Replace hash_hmac()
*
* @category PHP
* @package PHP_Compat
* @license LGPL - http://www.gnu.org/licenses/lgpl.html
* @copyright 2004-2007 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net>
* @link http://php.net/function.hash_hmac
* @author revulo <revulon@gmail.com>
* @since PHP 5.1.2
* @require PHP 4.0.1 (str_pad)
*/
function php_compat_hash_hmac($algo, $data, $key, $raw_output = false)
{
// Block size (byte) for MD5, SHA-1 and SHA-256.
$blocksize = 64;
$ipad = str_repeat("\x36", $blocksize);
$opad = str_repeat("\x5c", $blocksize);
if (strlen($key) > $blocksize) {
$key = hash($algo, $key, true);
} else {
$key = str_pad($key, $blocksize, "\x00");
}
$ipad ^= $key;
$opad ^= $key;
return hash($algo, $opad . hash($algo, $ipad . $data, true), $raw_output);
}
// Define
if (!function_exists('hash_hmac4')) {
function hash_hmac4($algo, $data, $key, $raw_output = false)
{
return php_compat_hash_hmac($algo, $data, $key, $raw_output);
}
}
?>