CryptoSys API Library Manual

hashLength

Return length of message digest output in bytes.

Syntax

[VBA]
Public Function hashLength ( _
    nAlgId As Long _
) As Long

Parameters

nAlgId
Algorithm Id flag. Select one of API_HASH_* or API_HMAC_*, for example:
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
API_HASH_MD5
API_HASH_MD2
API_HASH_RMD160
API_HASH_ASCON_HASH
API_HASH_ASCON_HASHA

Return Value

Long: Length of the hash function output in bytes; else a negative error code.

Example

Debug.Print hashLength(API_HASH_SHA512)
64
[PREV: hashInit...]   [Contents]   [Index]   
   [NEXT: macAddBytes...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.