Click or drag to resize

SmimeWrap Method

Wrap a CMS object in an S/MIME entity.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int Wrap(
	string outputFile,
	string inputFile,
	SmimeOptions opts
)

Parameters

outputFile  String
Output file to be created
inputFile  String
Input file containing CMS object
opts  SmimeOptions
Options

Return Value

Int32
A positive number giving the size of the output file in bytes; otherwise it returns an error code
Remarks
The input file is expected to be a binary CMS object of type enveloped-data, signed-data or compressed-data; otherwise it is an error. The type of input file is detected automatically. By default the body is encoded in base64 encoding. Use the EncodeBinary option to encode the body in binary.
See Also