5 #ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_CSRNG_SHARED_H_
6 #define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_CSRNG_SHARED_H_
23 kCsrngGenBitsBufferSize = 4,
31 typedef enum csrng_app_cmd_id {
32 kCsrngAppCmdInstantiate = 1,
33 kCsrngAppCmdReseed = 2,
34 kCsrngAppCmdGenerate = 3,
35 kCsrngAppCmdUpdate = 4,
36 kCsrngAppCmdUninstantiate = 5,
46 csrng_app_cmd_id_t
id;
68 typedef enum csrng_app_cmd_type {
72 kCsrngAppCmdTypeCsrng,
76 kCsrngAppCmdTypeEdnSw,
81 kCsrngAppCmdTypeEdnGen,
86 kCsrngAppCmdTypeEdnRes,
87 } csrng_app_cmd_type_t;
106 uint32_t csrng_cmd_header_build(
108 uint32_t cmd_len, uint32_t generate_len);
116 csrng_app_cmd_type_t cmd_type,
119 #endif // OPENTITAN_SW_DEVICE_LIB_DIF_DIF_CSRNG_SHARED_H_