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]

[PREV: Hash.Final Method...]   [Contents]   [Index]   
   [NEXT: Hash.HexFromBytes Method...]

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