|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Static Public Member Functions | |
| static | compute ($key, $hash, $data, $output=self::STRING) |
Static Public Member Functions inherited from Zend_Crypt | |
| static | hash ($algorithm, $data, $binaryOutput=false) |
Data Fields | |
| const | STRING = 'string' |
| const | BINARY = 'binary' |
Data Fields inherited from Zend_Crypt | |
| const | TYPE_OPENSSL = 'openssl' |
| const | TYPE_HASH = 'hash' |
| const | TYPE_MHASH = 'mhash' |
Static Protected Member Functions | |
| static | _setHashAlgorithm ($hash) |
| static | _hash ($data, $output=self::STRING, $internal=false) |
| static | _getMhashDefinition ($hashAlgorithm) |
Static Protected Member Functions inherited from Zend_Crypt | |
| 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 Protected Attributes inherited from Zend_Crypt | |
| 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 |
Definition at line 147 of file Hmac.php.
|
staticprotected |
Setter for the hash method.
| string | $hash |
| Zend_Crypt_Hmac_Exception |
Definition at line 114 of file Hmac.php.
|
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 |
| Zend_Crypt_Hmac_Exception |
Definition at line 91 of file Hmac.php.
|
staticprotected |
| const STRING = 'string' |