Skip to content

libsodium.SKI.GenerateMAC

Andrew Lambert edited this page Mar 20, 2017 · 6 revisions

libsodium.SKI.GenerateMAC

Method Signature

 Protected Function GenerateMAC(Message As MemoryBlock, Key As libsodium.SKI.SecretKey, Exportable As Boolean = False) As MemoryBlock

Parameters

Name Type Comment
Message MemoryBlock The data to be authenticated.
Key SecretKey The secret key.
Exportable Boolean Optional. If True then the return value is encoded in a text-based export format; otherwise the raw binary MAC is returned.

Return value

The message authentication code. On error returns Nil.

Remarks

Generates a HMAC-SHA512256 authentication code for the Message using the the specified SecretKey.

See also

Clone this wiki locally