Click or drag to resize

CmsMakeEnvDataFromString(String, String, String, CipherAlgorithm, CmsEnvDataOptions) Method

Create a CMS enveloped-data object from an ASCII string (default recipient parameters).

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

Parameters

outputFile  String
Output file to be created
inputData  String
Input data string, expected plain ASCII text.
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=Triple DES]
advOptions  CmsEnvDataOptions
Advanced options. See CmsEnvDataOptions.

Return Value

Int32
Number of successful recipients or negative error code
See Also