4 #ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_DRIVERS_ENTROPY_H_
5 #define OPENTITAN_SW_DEVICE_LIB_CRYPTO_DRIVERS_ENTROPY_H_
13 #include "sw/device/lib/base/status.h"
27 kEntropySeedBits = 256 + 128,
31 kEntropySeedBytes = kEntropySeedBits / 8,
35 kEntropySeedWords = kEntropySeedBytes /
sizeof(uint32_t),
51 uint32_t
data[kEntropySeedWords];
58 typedef enum entropy_csrng_send_app_cmd_type {
62 kEntropyCsrngSendAppCmdTypeCsrng,
66 kEntropyCsrngSendAppCmdTypeEdnSw,
71 kEntropyCsrngSendAppCmdTypeEdnGen,
76 kEntropyCsrngSendAppCmdTypeEdnRes,
77 } entropy_csrng_send_app_cmd_type_t;
113 status_t entropy_complex_check(
void);
174 status_t entropy_csrng_generate_start(
189 status_t entropy_csrng_generate_data_get(uint32_t *buf,
size_t len,
205 uint32_t *buf,
size_t len,
218 status_t entropy_csrng_uninstantiate(
void);
224 #endif // OPENTITAN_SW_DEVICE_LIB_CRYPTO_DRIVERS_ENTROPY_H_