-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.GenericHashDigest.Constructor
Andrew Lambert edited this page Feb 15, 2017
·
11 revisions
libsodium.GenericHashDigest.Constructor
##Method Signatures
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)##Parameters
####Constructor(libsodium.HashType, MemoryBlock)
| Name | Type | Comment |
|---|---|---|
| Type | HashType | Optional. The type of hash (Default is BLAKE2b) |
| KeyData | MemoryBlock | The key for keyed hashing. |
####Constructor(libsodium.Password, MemoryBlock, libsodium.HashType)
| 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) |
####Constructor(MemoryBlock, UInt32)
| Name | Type | Comment |
|---|---|---|
| HashSize | UInt32 | The size of the hash output, in bytes. |
| KeyData | MemoryBlock | The key for keyed hashing. |
##Remarks Creates a new generic hash processor.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-26 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