ica_drbg_reseed
Purpose
This function reseeds a NIST SP800-90A compliant DRBG instantiation from ica_drbg_instantiate.
Format
int ica_drbg_reseed(ica_drbg_t *sh,
bool pr,
const unsigned char *add,
size_t add_len);
Parameters
- ica_drbg_t *sh
- State handle pointer. Identifies the DRBG instantiation to be reseeded.
- bool pr
- Prediction resistance request. Indicates whether or not prediction resistance is required.
- const unsigned char *add
- Pointer to additional optional input. NULL indicates that no additional input is used.
- size_t add_len
- Length in bytes of parameter add.
Return codes
- 0
- Success
- ENOTSUP
- Prediction resistance is not supported.
- ICA_DBRG_HEALTH_TEST_FAIL
- Health test failed, see ica_drbg_health_test.
- ICA_DBRG_ENTROPY_SOURCE_FAIL
- Entropy source failed.