-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.SKI.GenerateMAC
Andrew Lambert edited this page Nov 26, 2022
·
6 revisions
Protected Function GenerateMAC(Message As MemoryBlock, Key As libsodium.SKI.SecretKey, Exportable As Boolean = False) As MemoryBlock
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. |
The message authentication code. On error returns Nil
.
Generates a HMAC-SHA512256 authentication code for the Message
using the the specified SecretKey
.
- VerifyMAC
- Secret key authentication in the libsodium documentation.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.