ica_drbg_health_test

Purpose

This function runs a health test for the complete ica_drbg function mechanism.

Format


int ica_drbg_health_test(void *func,
  int sec,
  bool pr,
  ica_drbg_mech_t *mech);

Parameters

void *func
Pointer indicating which function should be tested. Options are:
  • ica_drbg_instantiate
  • ica_drbg_reseed
  • ica_drbg_generate
The ica_drbg_instantiate function is tested whenever other functions are tested.
int sec
Security strength. Argument for the call to the function denoted by parameter func.
bool pr
Prediction resistance. Argument for the call to the function denoted by parameter func.
ica_drbg_mech_t *mech
Pointer to the mechanism to be tested.

Return codes

0
Success
ICA_DBRG_HEALTH_TEST_FAIL
Health test failed.
ENOTSUP
Prediction resistance or the requested security strength is not supported.
ICA_DBRG_ENTROPY_SOURCE_FAIL
Entropy source failed.

For return codes indicating exceptions, see Return codes.