123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- #ifndef NRF_CRYPTO_RNG_SHARED_H__
- #define NRF_CRYPTO_RNG_SHARED_H__
- #include "sdk_common.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define NRF_CRYPTO_RNG_CONTEXT_INIT_MAGIC_VALUE (0x4d616961)
- typedef struct
- {
- uint32_t init_value;
- } nrf_crypto_rng_internal_context_t;
- ret_code_t nrf_crypto_rng_backend_init(void * const p_context,
- void * const p_temp_buffer);
- ret_code_t nrf_crypto_rng_backend_uninit(void * const p_context);
- ret_code_t nrf_crypto_rng_backend_vector_generate(void * const p_context,
- uint8_t * const p_target,
- size_t size,
- bool use_mutex);
- ret_code_t nrf_crypto_rng_backend_reseed(void * const p_context,
- void * p_temp_buffer,
- uint8_t * p_input_data,
- size_t size);
- #ifdef __cplusplus
- }
- #endif
- #endif
|