CryptoSys PKI Pro Manual

Smime.Wrap Method

Wrap a CMS object in an S/MIME entity.

Syntax

[C#]
public static int Wrap(
	string outputFile,
	string inputFile,
	Smime.Options opts
)
[VB.NET]
Public Shared Function Wrap ( _
	outputFile As String, _
	inputFile As String, _
	opts As Smime.Options _
) As Integer

Parameters

outputFile
Output file to be created
inputFile
Input file containing CMS object
opts
Type: Smime.Options
Options

Return Value

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

VB6/C equivalent: SMIME_Wrap

[Contents] [Index]

[PREV: Smime.Query Method...]   [Contents]   [Index]   
   [NEXT: Tdea.Decrypt Method (Byte, Byte, Mode, Byte)...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.