123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #ifndef NRF_HW_BACKEND_RNG_H__
- #define NRF_HW_BACKEND_RNG_H__
- #include "sdk_common.h"
- #if NRF_MODULE_ENABLED(NRF_CRYPTO_BACKEND_NRF_HW_RNG) && \
- !NRF_MODULE_ENABLED(NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG)
- #if !NRF_MODULE_ENABLED(RNG)
- #error Enable RNG_ENABLED in sdk_config.h.
- #endif
- #if !NRFX_RNG_CONFIG_ERROR_CORRECTION
- #error Enable NRFX_RNG_CONFIG_ERROR_CORRECTION and RNG_CONFIG_ERROR_CORRECTION in sdk_config.h.
- #endif
- #include "nrf_crypto_rng_shared.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if NRF_MODULE_ENABLED(NRF_CRYPTO_RNG)
- #error "More than one RNG backend enabled."
- #endif
- #define NRF_CRYPTO_RNG_ENABLED 1
- typedef struct
- {
- nrf_crypto_rng_internal_context_t header;
- } nrf_crypto_backend_rng_context_t;
- typedef struct
- {
- uint32_t reserved;
- } nrf_crypto_backend_rng_temp_buffer_t;
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
|