Performs power-up self-tests required by FIPS 140-2.
#include "hugse56.h" int hu_SelfTestSbg56(sb_GlobalCtx sbCtx)
- A global context.
libhuapi (For the qcc command, use the -l huapi option to link against this library)
Power-up self-tests by FIPS 140-2 include a software integrity test and known answer tests on FIPS Approved algorithms.
If for any reason the self-tests fail, the state of the module is set to SBG56_STATE_DISABLED.
This function may be called only if the module is in the SBG56_STATE_ENABLED state. Calling this function from any other state results in an error being returned.
- 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 self-tests could not be run because this module is disabled and this operation is not allowed.
Last modified: 2015-07-24