CryptSigner(X509Certificate2, Oid) Constructor
Initializes a new instance of the CryptSigner class from signer certificate and
client-provided hash algorithm.
Namespace: SysadminsLV.PKI.CryptographyAssembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
public CryptSigner(
X509Certificate2 certificate,
Oid hashingAlgorithm
)
Public Sub New (
certificate As X509Certificate2,
hashingAlgorithm As Oid
)
public:
CryptSigner(
X509Certificate2^ certificate,
Oid^ hashingAlgorithm
)
new :
certificate : X509Certificate2 *
hashingAlgorithm : Oid -> CryptSigner
Parameters
- certificate X509Certificate2
- Signer certificate with associated private key.
- hashingAlgorithm Oid
-
Hash algorithm that is used to calculate the hash during signing or signature verification
processes.
Currently, the following hash algorithms are supported:
- MD5
- SHA1
- SHA256
- SHA384
- SHA512
Hash algorithm is ignored for DSA keys and is automatically set to 'SHA1'.