11.12.3.4.221. Function sss_mac_context_init¶
Defined in File fsl_sss_api.h
11.12.3.4.221.1. Function Documentation¶
-
sss_status_t
sss_mac_context_init
(sss_mac_t *context, sss_session_t *session, sss_object_t *keyObject, sss_algorithm_t algorithm, sss_mode_t mode)¶ MAC context init. The function initializes mac context with initial values.
- Return
Status of the operation
- Parameters
context
: Pointer to mac context.session
: Associate SSS session with mac context.keyObject
: Associate SSS key object with mac context.algorithm
: One of the mac algorithms defined by sss_algorithm_t.mode
: One of the modes defined by sss_mode_t.
- Return Value
kStatus_SSS_Success
: The operation has completed successfully.kStatus_SSS_Fail
: The operation has failed.kStatus_SSS_InvalidArgument
: One of the arguments is invalid for the function to execute.