OidExtensionsMapHashToSignatureOid Method

Converts hashing algorithm OID to appropriate OID from signature group. For example, translates sha1 hashing algorithm to sha1NoSign with the same OID value.

Definition

Namespace: SysadminsLV.PKI.Cryptography
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public static Oid MapHashToSignatureOid(
	this Oid hashAlgorithm
)

Parameters

hashAlgorithm  Oid
Hashing algorithm

Return Value

Oid
OID in signature group.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Oid. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullExceptionhashAlgorithm parameter is null.
CryptographicException Input OID doesn't belong to hash algorithm group or it cannot be translated to a respective

See Also