#include <crypto/nrf_cc310_platform/include/nrf_cc3xx_platform_hmac_drbg.h>
Function to do a manual reseed of hmac_drbg (using TRNG)
- Note
- If the context is NULL the function uses an internal context.
-
Calling this API is optional as the APIs nrf_cc3xx_platform_hmac_drbg_get and nrf_cc3xx_platform_hmac_drbg_get_with_add functions will reseed automatically according to the reseed interval in the built-in mbedtls_hmac_drbg context.
-
Before calling this API the context to must be initialized by calling nrf_cc3xx_platform_hmac_drbg_init.
-
This API is only usable if nrf_cc3xx_platform initialization APIs was run prior to calling it.
-
This API is unneccesary if hmac_drbg is executed with prediction resistance turned on.
- Parameters
-
| [in,out] | context | Pointer to a structure holding the hmac_drbg context. |
| [in] | additional | Optional additional input to use for HMAC_DRBG_Reseed_function. |
| [in] | add_len | Length of the additional input in bytes, may be zero. |
- Returns
- NRF_CC3XX_PLATFORM_SUCCESS on success, otherwise a non-zero failure according to the API mbedtls_hmac_drbg_reseed.