SignedContentBlobHash Method

Hashes current blob in ToBeSignedData member, constructs algorithm identifier (usually, with "NoSign" suffix) and attaches hash value in the signature section.

Definition

Namespace: SysadminsLV.PKI.Cryptography
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public void Hash(
	Oid hashAlgorithm
)

Parameters

hashAlgorithm  Oid
Hash algorithm to use for hashing.

Exceptions

ArgumentException Hash algorithm is not valid or cannot be mapped to respective signature algorithm.
ArgumentNullExceptionhashAlgorithm parameter is null.

See Also