Oid2MapHashToSignatureOid Method |
Converts hashing algorithm OID to appropriate OID from signature group. For example, translates
sha1 hashing algorithm to sha1NoSign with the same OID value.
Namespace:
System.Security.Cryptography
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public static Oid2 MapHashToSignatureOid(
Oid2 hashAlgorithm
)
Public Shared Function MapHashToSignatureOid (
hashAlgorithm As Oid2
) As Oid2
public:
static Oid2^ MapHashToSignatureOid(
Oid2^ hashAlgorithm
)
static member MapHashToSignatureOid :
hashAlgorithm : Oid2 -> Oid2
Parameters
- hashAlgorithm
- Type: System.Security.CryptographyOid2
Hashing algorithm
Return Value
Type:
Oid2OID in signature group.
Exceptions Exception | Condition |
---|
ArgumentNullException | hashAlgorithm parameter is null.
|
ArgumentException |
Input OID doesn't belong to hash algorithm group or it cannot be translated to a respective
|
See Also