TspMessageImprint Constructor

Initializes a new instance of TspMessageImprint from hash algorithm and data to hash.

Definition

Namespace: SysadminsLV.PKI.Cryptography
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public TspMessageImprint(
	Oid hashAlgorithm,
	byte[] data
)

Parameters

hashAlgorithm  Oid
A hash algorithm to hash the data.
data  Byte
Data to hash.

Exceptions

ArgumentNullExceptionhashAlgorithm or data is null.
CryptographicExceptionhashAlgorithm is invalid hashing algorithm.

See Also