|
|
Creates a cryptographic message context by requesting the cryptographic message resource from the library module and initializing the context. -
Parameters:
-
| lib_ctx |
[In] A pointer to the library context from which to create the cryptographic message context. |
| flag |
[In] The context of use flag.
See Flags for valid values. |
| type |
[In] The types of cryptographic messages to handle.
See Types for valid values. |
| ctx |
[Out] A pointer to the reference of the created cryptographic message context. |
-
Returns:
-
R_ERROR_NONE indicates success.
See Identifiers for valid values.
-
See also:
-
R_CM_CTX_free().
-
Samples:
-
cm.c, cm_adv.c, cm_dgst.c, cm_env.c, cm_env_sm.c, cm_env_strm.c, cm_env_strm_membio.c, cm_open.c, cm_open_strm.c, cm_open_strm_cb.c, cm_open_strm_membio.c, cm_sign.c, cm_sign_dgst.c, cm_sign_sm.c, cm_sign_strm.c, cm_smpl.c, cm_strm.c, cm_type.c, cm_vfy_strm_cb.c, p7ssl_client.c, and p7ssl_server.c.
|