-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.GenericHash
Andrew Lambert edited this page Nov 26, 2022
·
6 revisions
libsodium.GenericHash
Protected Function GenericHash(InputData As MemoryBlock, Key As MemoryBlock = Nil, HashSize As UInt32 = libsodium.crypto_generichash_BYTES_MAX) As String
Name | Type | Comment |
---|---|---|
InputData | MemoryBlock | The data to be hashed. |
Key | MemoryBlock | Optional. The key for keyed hashing. |
HashSize | UInt32 | Optional. The size of the hash output, in bytes. |
The hash value, or Nil
on error.
Generates a BLAKE2b digest of the InputData, optionally using the specified key. The Key
is typically a SecretKey or SharedSecret. HashSize
must be >=32
and <=64
bytes; the default is 64 bytes.
- GenericHashDigest
- Generic hashing 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.