TYPO3 CMS  TYPO3_6-2
HMAC.php File Reference

Go to the source code of this file.

Namespaces

 OpenID
 

Functions

 Auth_OpenID_SHA1 ($text)
 
 Auth_OpenID_HMACSHA1 ($key, $text)
 

Variables

const Auth_OpenID_SHA1_BLOCKSIZE 64
 
if(function_exists('hash') &&function_exists('hash_algos') &&(in_array('sha256', hash_algos()))) else
 

Function Documentation

◆ Auth_OpenID_HMACSHA1()

Auth_OpenID_HMACSHA1 (   $key,
  $text 
)

Compute an HMAC/SHA1 hash.

private

Parameters
string$keyThe HMAC key
string$textThe message text to hash
Returns
string $mac The MAC

Definition at line 57 of file HMAC.php.

References Auth_OpenID_SHA1(), Auth_OpenID_SHA1_BLOCKSIZE, and Auth_OpenID\bytes().

◆ Auth_OpenID_SHA1()

Auth_OpenID_SHA1 (   $text)

Variable Documentation

◆ Auth_OpenID_SHA1_BLOCKSIZE

const Auth_OpenID_SHA1_BLOCKSIZE 64

SHA1_BLOCKSIZE is this module's SHA1 blocksize used by the fallback implementation.

Definition at line 23 of file HMAC.php.

Referenced by Auth_OpenID_HMACSHA1().

◆ else

if (function_exists( 'hash_hmac') &&function_exists( 'hash_algos') &&(in_array( 'sha256', hash_algos()))) else
Initial value:
{
define('Auth_OpenID_SHA256_SUPPORTED', false)

Definition at line 87 of file HMAC.php.