CryptoSys API Library Manual
hashInit
Initialise the HASH context ready for incremental operations.
Syntax
[VBA]
Public Function hashInit ( _
Optional nAlg As Long = 0 _
) As Long
Parameters
- nAlg
- Algorithm to be used. Select one from:
API_HASH_SHA1
API_HASH_SHA224
API_HASH_SHA256
API_HASH_SHA384
API_HASH_SHA512
API_HASH_SHA3_224
API_HASH_SHA3_256
API_HASH_SHA3_384
API_HASH_SHA3_512
Return Value
Long: Nonzero handle of the HASH context, or zero if an error occurs.
Remarks
Only the SHA-1, SHA-2 and SHA-3 families of hash algorithms are supported in incremental mode.
While the context handle is valid, add data to be digested in blocks of any length using
hashAddBytes or
hashAddString.