$mbString
$mbString : null|boolean
Internal flag to enable or disable the `mbstring` extension usage.
Note: null
=> auto-check on next call, true
=> available,
false
=> not available.
Class NativeHmacSha3 - Pure PHP implementation of the HMAC-SHA-3 algorithm.
digest224(string|mixed $inputData, string|mixed $hashingKey, boolean|integer|null $rawOutput = false) : string
The HMAC-SHA-3-224 hashing function.
string|mixed | $inputData | The input message to be hashed. |
string|mixed | $hashingKey | The HMAC algorithm key. |
boolean|integer|null | $rawOutput | When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits. |
Validation errors.
The output HMAC digest.
digest256(string|mixed $inputData, string|mixed $hashingKey, boolean|integer|null $rawOutput = false) : string
The HMAC-SHA-3-256 hashing function.
string|mixed | $inputData | The input message to be hashed. |
string|mixed | $hashingKey | The HMAC algorithm key. |
boolean|integer|null | $rawOutput | When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits. |
Validation errors.
The output HMAC digest.
digest384(string|mixed $inputData, string|mixed $hashingKey, boolean|integer|null $rawOutput = false) : string
The HMAC-SHA-3-384 hashing function.
string|mixed | $inputData | The input message to be hashed. |
string|mixed | $hashingKey | The HMAC algorithm key. |
boolean|integer|null | $rawOutput | When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits. |
Validation errors.
The output HMAC digest.
digest512(string|mixed $inputData, string|mixed $hashingKey, boolean|integer|null $rawOutput = false) : string
The HMAC-SHA-3-512 hashing function.
string|mixed | $inputData | The input message to be hashed. |
string|mixed | $hashingKey | The HMAC algorithm key. |
boolean|integer|null | $rawOutput | When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits. |
Validation errors.
The output HMAC digest.
customHmac(string $algorithm, string|mixed $data, string|mixed $key, boolean|integer|null $rawOutput = false) : string
Internal static method for single point consumption of the HMAC-SHA-3 implementation.
string | $algorithm | The SHA-3 algorithm name. |
string|mixed | $data | The input data for hashing. |
string|mixed | $key | The hashing key or password. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output HMAC digest.