Performs power-up self-tests required by FIPS 140-2.
#include "hugse56.h"
int hu_SelfTestSbg56(sb_GlobalCtx sbCtx)
A global context.
Power-up self-tests by FIPS 140-2 include software integrity test and known answer tests on FIPS Approved algorithms.
If the self-test fails for any reason, the state of the module will be set to SBG56_STATE_DISABLED.
The function may only be called if the module is in the SBG56_STATE_ENABLED state. Calling this function from any other state will result in an error being returned.
The self-tests could not be run because the module has been disabled.
The integrity of the module was compromised. The module has been disabled.
The module failed one or more known-answer tests. The module has been disabled.
The module has not been initialized.
The module is disabled and this operation is not allowed.
Success.