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