$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 NativeHkdfSha3 - Pure PHP implementation of the HKDF-SHA-3 algorithm.
digest224(string $ikm, integer $length, string $information = '', string $salt = '', boolean|integer|null $rawOutput = false) : string
The HKDF-SHA-3-224 key derivation function.
string | $ikm | The input keying material (cannot be empty). |
integer | $length | The desired output string length in bytes. |
string | $information | The application or context-specific string. |
string | $salt | The salt string to use during derivation. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output derived key (output keying material).
digest256(string|mixed $ikm, integer $length, string|mixed $information = '', string|mixed $salt = '', boolean|integer|null $rawOutput = false) : string
The HKDF-SHA-3-256 key derivation function.
string|mixed | $ikm | The input keying material (cannot be empty). |
integer | $length | The desired output string length in bytes. |
string|mixed | $information | The application or context-specific string. |
string|mixed | $salt | The salt string to use during derivation. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output derived key (output keying material).
digest384(string|mixed $ikm, integer $length, string|mixed $information = '', string|mixed $salt = '', boolean|integer|null $rawOutput = false) : string
The HKDF-SHA-3-384 key derivation function.
string|mixed | $ikm | The input keying material (cannot be empty). |
integer | $length | The desired output string length in bytes. |
string|mixed | $information | The application or context-specific string. |
string|mixed | $salt | The salt string to use during derivation. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output derived key (output keying material).
digest512(string|mixed $ikm, integer $length, string|mixed $information = '', string|mixed $salt = '', boolean|integer|null $rawOutput = false) : string
The HKDF-SHA-3-512 key derivation function.
string|mixed | $ikm | The input keying material (cannot be empty). |
integer | $length | The desired output string length in bytes. |
string|mixed | $information | The application or context-specific string. |
string|mixed | $salt | The salt string to use during derivation. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output derived key (output keying material).
customHkdf(string $algorithm, string|mixed $ikm, integer $length, string|mixed $info = '', string|mixed $salt = '', boolean|integer|null $rawOutput = false) : string
Internal static method for single point consumption of the HKDF-SHA-3 implementation.
string | $algorithm | The SHA-3 algorithm name. |
string|mixed | $ikm | The input keying material (cannot be empty). |
integer | $length | The desired output string length in bytes. |
string|mixed | $info | The application or context-specific string. |
string|mixed | $salt | The salt string to use during derivation. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output derived key (output keying material).