Click or drag to resize

CmsMakeSigData(String, String, String, String, HashAlgorithm, CmsSigDataOptions) Method

Create a CMS object of type SignedData from an input data file using RSASSA-PKCS1V1_5 with options.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int MakeSigData(
	string outputFile,
	string inputFile,
	string certList,
	string privateKey,
	HashAlgorithm hashAlg = HashAlgorithm.Sha1,
	CmsSigDataOptions advOptions = CmsSigDataOptions.Default
)

Parameters

outputFile  String
name of output file to be created
inputFile  String
name of file containing message data to be signed
certList  String
filename of the signer's certificate and (optionally) a list of other certificates to be included in the output, separated by semi-colons (;) Alternatively specify a single PKCS#7 certificate chain file (.p7c/.p7b) containing the signer's certificate.
privateKey  String
private key data for the sender
hashAlg  HashAlgorithm  (Optional)
Message digest algorithm to be used in signature [default=SHA-1].
advOptions  CmsSigDataOptions  (Optional)
Advanced option flags. See CmsSigDataOptions.

Return Value

Int32
Zero if successful; otherwise it returns an error code
Remarks
RSASSA-PKCS1V1_5 only.
See Also