Click or drag to resize

CmsMakeSigDataFromBytes Method

Create a CMS object of type SignedData from an array of bytes.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int MakeSigDataFromBytes(
	string outputFile,
	byte[] inputData,
	string certList,
	string privateKey,
	CmsSigAlg sigAlg,
	CmsSigDataOptions advOptions
)

Parameters

outputFile  String
name of output file to be created.
inputData  Byte
message data to be signed in a byte array.
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.
sigAlg  CmsSigAlg
Signature algorithm.
advOptions  CmsSigDataOptions
Advanced option flags. See CmsSigDataOptions.

Return Value

Int32
Zero if successful; otherwise it returns an error code
See Also