Method SignContentDigest
SignContentDigest(X509Certificate2, HashAlgorithmName, Byte[])
Creates a CMS-SignedData object with one SignerInfo object.
Declaration
[Obsolete("For testing. Might be removed in the next major version.")]
public static SignedCms SignContentDigest(X509Certificate2 signerCert, HashAlgorithmName hashAlgorithmName, byte[] contentDigest)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Security.Cryptography.X509Certificates.X509Certificate2 | signerCert | The signer's certificate. |
| System.Security.Cryptography.HashAlgorithmName | hashAlgorithmName | The algorithm used in the digestion step. |
| System.Byte[] | contentDigest | The content digest. |
Returns
| Type | Description |
|---|---|
| System.Security.Cryptography.Pkcs.SignedCms | Null in case of error. |