Skip to content

libsodium.GenericHashDigest.Constructor

Andrew Lambert edited this page Nov 26, 2022 · 11 revisions

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 Optional. 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(UInt32, MemoryBlock)

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.

Clone this wiki locally