Method Build
Build(X509Certificate2, HashAlgorithmName, SignedAttributes, Byte[])
Builds a CMS-SignedData object.
Declaration
public static SignedCms Build(X509Certificate2 signerCert, HashAlgorithmName hashAlgorithmName, SignedAttributes signedAttributes, byte[] rsaSignature)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2 | signerCert | The certificate of the signer. |
System.Security.Cryptography.HashAlgorithmName | hashAlgorithmName | The hash algorithm used with RSA for signing. |
SignedAttributes | signedAttributes | The signed attributes. |
System.Byte[] | rsaSignature | The RSA signature value. |
Returns
Type | Description |
---|---|
System.Security.Cryptography.Pkcs.SignedCms |
Remarks
The CMS-SignedData object is built with one SignerInfo object using the the given certificate, digest algorithm, signed attributes, and RSA signature.