CryptoSys PKI Pro Manual

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

Int32
Number of successful recipients or a negative error code.

See Also

VB6/C equivalent: CMS_MakeEnvData

[Contents] [Index]

[PREV: Cms.MakeDetachedSig Method...]   [Contents]   [Index]   
   [NEXT: Cms.MakeEnvData(String, String, String, CipherAlgorithm, Cms.KeyEncrAlgorithm, HashAlgorithm, Cms.EnvDataOptions, Kdf.KdfAlg, Kdf.KeyWrapAlg, String, Int32, Cms.ContentEncrAlg) Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.