Zend Framework
1.12
|
Static Public Member Functions | |
static | compute ($key, $hash, $data, $output=self::STRING) |
Performs a HMAC computation given relevant details such as Key, Hashing algorithm, the data to compute MAC of, and an output format of String, Binary notation or BTWOC. | |
![]() | |
static | hash ($algorithm, $data, $binaryOutput=false) |
Public Attributes | |
const | STRING = 'string' |
Constants representing the output mode of the hash algorithm. | |
const | BINARY = 'binary' |
![]() | |
const | TYPE_OPENSSL = 'openssl' |
const | TYPE_HASH = 'hash' |
const | TYPE_MHASH = 'mhash' |
Static Protected Member Functions | |
static | _setHashAlgorithm ($hash) |
Setter for the hash method. | |
static | _hash ($data, $output=self::STRING, $internal=false) |
Perform HMAC and return the keyed data. | |
static | _getMhashDefinition ($hashAlgorithm) |
Since MHASH accepts an integer constant representing the hash algorithm we need to make a small detour to get the correct integer matching our algorithm's name. | |
![]() | |
static | _detectHashSupport ($algorithm) |
static | _digestHash ($algorithm, $data, $binaryOutput) |
static | _digestMhash ($algorithm, $data, $binaryOutput) |
static | _digestOpenssl ($algorithm, $data, $binaryOutput) |
Static Protected Attributes | |
static | $_key = null |
static | $_packFormat = null |
static | $_hashAlgorithm = 'md5' |
static | $_supportedMhashAlgorithms |
![]() | |
static | $_type = null |
static | $_supportedAlgosOpenssl |
static | $_supportedAlgosMhash |
|
staticprotected |
Since MHASH accepts an integer constant representing the hash algorithm we need to make a small detour to get the correct integer matching our algorithm's name.
string | $hashAlgorithm |
|
staticprotected |
Perform HMAC and return the keyed data.
string | $data | |
string | $output | |
bool | $internal | Option to not use hash() functions for testing |
|
staticprotected |
|
static |
Performs a HMAC computation given relevant details such as Key, Hashing algorithm, the data to compute MAC of, and an output format of String, Binary notation or BTWOC.
string | $key | |
string | $hash | |
string | $data | |
string | $output | |
boolean | $internal |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
const BINARY = 'binary' |
const STRING = 'string' |
Constants representing the output mode of the hash algorithm.