| hash_hkdfGenerate a HKDF key derivation of a supplied key input Description
   string hash_hkdf
    ( string  $algo, string$ikm[, int$length= 0
   [, string$info= ''
   [, string$salt= ''
  ]]] )Parameters
 
 Return Values
   Returns a string containing a raw binary representation of the derived key
   (also known as output keying material - OKM); or  Errors/Exceptions
   An  Examples
 Example #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. |