Cms.MakeEnvDataFromString Method (String, String, String, CipherAlgorithm, Cms.EnvDataOptions)
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.NET]
Public Shared Function MakeEnvDataFromString ( _
outputFile As String, _
inputData As String, _
certList As String, _
cipherAlg As CipherAlgorithm, _
advOptions As Cms.EnvDataOptions _
) As Integer
Parameters
- outputFile
- Output file to be created
- inputData
- Input data string, expected plain ASCII text.
- certList
- List of recipient X.509 certificate filename(s), separated by semi-colons (;). Alternatively, specify a single PKCS#7 certificate chain file (.p7c/.p7b).
- cipherAlg
- Type: CipherAlgorithm
Content encryption algorithm [default=Triple DES]
- advOptions
- Type: Cms.EnvDataOptions
Advanced options. See Cms.EnvDataOptions.
Return Value
Number of successful recipients or negative
error code
See Also
VB6/C equivalent: CMS_MakeEnvDataFromString
[Contents] [Index]
[
NEXT: Cms.MakeEnvDataFromString Method (String, String, String, CipherAlgorithm, Cms.KeyEncrAlgorithm, HashAlgorithm, Cms.EnvDataOptions, Kdf.KdfAlg, Kdf.KeyWrapAlg, String, Int32, Cms.ContentEncrAlg)...]