Method |
Description |
|
__construct ( string $hash = 'sha256' ) |
Default Constructor. |
|
_sha512 ( string $m, $hash ) |
Pure-PHP implementation of SHA512 |
|
getBlockLength ( ) : integer |
Returns the block length (in bits) |
|
getBlockLengthInBytes ( ) : integer |
Returns the block length (in bytes) |
|
getHash ( ) : string |
Gets the hash function. |
|
getLength ( ) : integer |
Returns the hash length (in bits) |
|
getLengthInBytes ( ) : integer |
Returns the hash length (in bytes) |
|
hash ( string $text ) : string |
Compute the HMAC. |
|
setHash ( string $hash ) |
Sets the hash function. |
|
setKey ( string $key = false ) |
Sets the key for HMACs |
|