Web3S_Demo > Web 3S Crypto Function Library > Generate HMAC

Generate HMAC

Generates a new HMAC for the given input using the specified digest type.

Inputs

In
Exec

Digest Type
EWeb3S_DigestTypeHmac Enum

digest function type to use for HMAC generation.

Data
Array of Bytes

binary data for which the HMAC will be generated.

Key
Array of Bytes

binary key used in HMAC generation.

Outputs

Out
Exec

Error Message
String

if generation failed, contains associated error message.

Code
Array of Bytes

if generation was successful, the HMAC generated for the input data.

Success
Boolean

True if generation was successful, false otherwise.