Wrap a CMS object in an S/MIME entity.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int Wrap(
string outputFile,
string inputFile,
SmimeOptions opts
)
Public Shared Function Wrap (
outputFile As String,
inputFile As String,
opts As SmimeOptions
) As Integer
Parameters
- outputFile String
- Output file to be created
- inputFile String
- Input file containing CMS object
- opts SmimeOptions
- Options
Return Value
Int32A 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