hash_hkdfGenerate a HKDF key derivation of a supplied key input Beschreibung
string hash_hkdf
( string
$algo
, string $ikm
[, int $length = 0
[, string $info = ''
[, string $salt = ''
]]] )Parameter-Liste
Rückgabewerte
Returns a string containing a raw binary representation of the derived key
(also known as output keying material - OKM); or Fehler/Exceptions
An Beispiele
Beispiel #1 hash_hkdf example
<?phpThe above example produces a pair of separate keys, suitable for creation of an encrypt-then-HMAC contrstruct, using AES-256 and SHA-256 for encryption and authentication respectively. |