Skip to content

libsodium.GenericHashDigest.Constructor

Andrew Lambert edited this page Mar 15, 2017 · 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(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.

Clone this wiki locally