-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.GenericHashDigest.Constructor
Andrew Lambert edited this page Nov 26, 2022
·
11 revisions
libsodium.GenericHashDigest.Constructor
Sub Constructor(Type As libsodium.HashType = libsodium.HashType.Generic, KeyData As MemoryBlock = Nil)
Sub Constructor(KeyData As libsodium.Password, Salt As MemoryBlock, Type As libsodium.HashType = libsodium.HashType.Generic)
Sub Constructor(HashSize As UInt32, KeyData As MemoryBlock)| Name | Type | Comment |
|---|---|---|
| Type | HashType | Optional. The type of hash (Default is BLAKE2b) |
| KeyData | MemoryBlock | Optional. The key for keyed hashing. |
| Name | Type | Comment |
|---|---|---|
| KeyData | Password | The password from which to derive a hashing key. |
| Salt | MemoryBlock | Optional. A random salt for the key derivation algorithm. |
| Type | HashType | Optional. The type of hash (Default is BLAKE2b) |
| Name | Type | Comment |
|---|---|---|
| HashSize | UInt32 | The size of the hash output, in bytes. |
| KeyData | MemoryBlock | The key for keyed hashing. |
Creates a new generic hash processor.
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.
- libsodium module
- FAQ
-
Examples
- Secure memory
- Password hashing
- Generic hashing
- Encrypting streams or files
- PKI
- Encryption
- Digital signatures
- SKI
- Encryption
- Message authentication