hu_SelfTestSbg56()

Performs power-up self-tests required by FIPS 140-2.

Synopsis:

#include "hugse56.h"

int hu_SelfTestSbg56(sb_GlobalCtx sbCtx)
            

Arguments:

sbCtx
A global context.

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

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.

Returns:

SB_FAIL_LIBRARY_INTEGRITY
The integrity of the module was compromised. The module has been disabled.
SB_FAIL_KAT
The module failed one or more known-answer tests. The module has been disabled.
SB_FAIL_LIBRARY_NOT_INIT
The module has not been initialized.
SB_FAIL_LIBRARY_DISABLED
The self-tests could not be run because this module is disabled and this operation is not allowed.
SB_SUCCESS
Success.

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus