Retrieves the state of the module.
Synopsis:
#include "hugse56.h"
int hu_GetStateSbg56(int *state, sb_GlobalCtx sbCtx)
Arguments:
- state
-
The state of the module.
- sbCtx
-
A global context.
Library:
libhuapi (For the qcc command, use the -l huapi option to link against this library)
Description:
Possible values for
state are:
-
SBG56_STATE_INSTALLED - The module is installed. It is uninitialized and cannot perform cryptographic operations.
-
SBG56_STATE_ENABLED - The module has been initialized, and is ready to perform cryptographic operations.
-
SBG56_STATE_DISABLED - The module has been disabled, and cannot perform cryptographic operations.
Returns:
- SB_ERR_NULL_OUTPUT
-
The state pointer is NULL.
- SB_SUCCESS
-
Success.