CryptoSys API Library Manual
Hash.HexFromBits Method
Computes hash value in hex format from bit-oriented input
Syntax
[C#]
public static string HexFromBits(
byte[] data,
int dataBitLen,
HashAlgorithm hashAlg
)
[VB.NET]
Public Shared Function HexFromBits ( _
data As Byte(), _
dataBitLen As Integer, _
hashAlg As HashAlgorithm _
) As String
Parameters
- data
- Bit-oriented message data in byte array
- dataBitLen
- Number of bits in data to digest
- hashAlg
- Type: HashAlgorithm
Hash algorithm to be used (SHA-1, SHA-2, SHA-3 only)
Return Value
Message digest in hex-encoded format
Remarks
Only the SHA families of hash functions (SHA-1, SHA-2, SHA-3) are supported in bit-oriented mode
See Also
VB6/C equivalent: HASH_HexFromBits
[Contents] [Index]