Export (0) Print
Expand All

Low-level Message Functions

The low-level message functions encode data for transmission and decode data that has been received. Low-level message functions also decrypt and verify the signatures of received messages.

When a message is opened using a low-level message open function, it remains open and available (maintains its state) until it is closed. This allows a message to be constructed piecemeal using multiple calls to the CryptMsgUpdate function.

Using low-level message functions requires more function calls than using simplified message functions (see Simplified Messages). If the simplified message functions are used, more of the work is done inside the functions of the API.

Using low-level message functions involves the additional work of making calls to other certificate or cryptographic functions. For example, data from calls to certificate functions may be needed to initialize structures used by these low-level message functions. Simplified message functions initialize many of these structures internally.

The following table lists sections with procedure descriptions and C code examples of using the low-level message functions.

SectionContents
Low-level Message FunctionsLists the low-level message functions.
Signing Data Details the tasks needed to sign data.
Encoding Enveloped Data Details the tasks needed to encode enveloped data.
Decoding Enveloped Data Details the tasks needed to decode enveloped data.

 

 

 

Community Additions

ADD
Show:
© 2014 Microsoft