Click or drag to resize

CmsMakeEnvData(String, String, String, CipherAlgorithm, CmsEnvDataOptions) Method

Create a CMS enveloped-data object (default recipient parameters).

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int MakeEnvData(
	string outputFile,
	string inputFile,
	string certList,
	CipherAlgorithm cipherAlg,
	CmsEnvDataOptions advOptions
)

Parameters

outputFile  String
Name of output file to be created.
inputFile  String
Input data file.
certList  String
List of recipient X.509 certificate filename(s), separated by semi-colons (;). Alternatively, specify a single PKCS#7 certificate chain file (.p7c/.p7b).
cipherAlg  CipherAlgorithm
Content encryption algorithm [default=AES128-CBC].
advOptions  CmsEnvDataOptions
Advanced options. See CmsEnvDataOptions.

Return Value

Int32
Number of successful recipients or a negative error code.
See Also