Cms.MakeEnvDataFromString(String, String, String, CipherAlgorithm, Cms.EnvDataOptions) Method
Create a CMS enveloped-data object from an ASCII string (default recipient parameters).
Syntax
[C#]
public static int MakeEnvDataFromString(
string outputFile,
string inputData,
string certList,
CipherAlgorithm cipherAlg,
Cms.EnvDataOptions advOptions
)
[VB]
Public Shared Function MakeEnvDataFromString (
outputFile As String,
inputData As String,
certList As String,
cipherAlg As CipherAlgorithm,
advOptions As Cms.EnvDataOptions
) As Integer
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 Cms.EnvDataOptions
- Advanced options.
Return Value
Int32Number of successful recipients or negative
error code
See Also
VB6/C equivalent: CMS_MakeEnvDataFromString
[Contents] [Index]
[
NEXT: Cms.MakeEnvDataFromString(String, String, String, CipherAlgorithm, Cms.KeyEncrAlgorithm, HashAlgorithm, Cms.EnvDataOptions, Kdf.KdfAlg, Kdf.KeyWrapAlg, String, Int32, Cms.ContentEncrAlg) Method...]