crypto_hmac_sha256()

 
Calculates an HMAC SHA-256 (Hash-based Message Authentication Code) of buffer
Syntax
crypto_hmac_sha256( buffer var, key, format, result var )
Returns 1 on success, 0 on error or if on an unsuported platform.
  • buffer = value to hash
  • key = binary key to use to calculate the hmac
  • format = "binary" or "hex"
  • result = a variable used to store the results.
User Annotations: crypto_hmac_sha256