hmac_sha512_256

Git Source

Implements HMAC using SHA512-256.

https://en.wikipedia.org/wiki/HMAC

function hmac_sha512_256(bytes memory key, bytes memory message) view returns (bytes32);

Parameters

NameTypeDescription
keybytesthe secret key.
messagebytesthe message to be authenticated. #### Example solidity bytes memory key = "arbitrary length key"; bytes memory message = "arbitrary length message"; bytes32 hmac = hmac_sha512_256(key, message)