JanRain OpenID Library

HMAC.php

This is the HMACSHA1 implementation for the OpenID library.

PHP versions 4 and 5

LICENSE: See the COPYING file included in this distribution.

Tags
access

private

author

JanRain, Inc. openid@janrain.com

copyright

2005-2008 Janrain, Inc.

license

http://www.apache.org/licenses/LICENSE-2.0 Apache

Table of Contents

Auth_OpenID_HMACSHA256_SUPPORTED  = \false
Auth_OpenID_SHA1_BLOCKSIZE  = 64
SHA1_BLOCKSIZE is this module's SHA1 blocksize used by the fallback implementation.
Auth_OpenID_SHA256_SUPPORTED  = \false
Auth_OpenID_SHA1()  : mixed
Auth_OpenID_HMACSHA1()  : string
Compute an HMAC/SHA1 hash.
Auth_OpenID_SHA256()  : mixed
Auth_OpenID_HMACSHA256()  : mixed

Constants

Auth_OpenID_HMACSHA256_SUPPORTED

public mixed Auth_OpenID_HMACSHA256_SUPPORTED = \false

Auth_OpenID_SHA1_BLOCKSIZE

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

public mixed Auth_OpenID_SHA1_BLOCKSIZE = 64

Auth_OpenID_SHA256_SUPPORTED

public mixed Auth_OpenID_SHA256_SUPPORTED = \false

Functions

Auth_OpenID_SHA1()

Auth_OpenID_SHA1(mixed $text) : mixed
Parameters
$text : mixed
Return values
mixed

Auth_OpenID_HMACSHA1()

Compute an HMAC/SHA1 hash.

Auth_OpenID_HMACSHA1(string $key, string $text) : string
Parameters
$key : string

The HMAC key

$text : string

The message text to hash

Tags
access

private

Return values
string

$mac The MAC

Auth_OpenID_SHA256()

Auth_OpenID_SHA256(mixed $text) : mixed
Parameters
$text : mixed
Return values
mixed

Auth_OpenID_HMACSHA256()

Auth_OpenID_HMACSHA256(mixed $key, mixed $text) : mixed
Parameters
$key : mixed
$text : mixed
Return values
mixed

Search results