Bouffalo SDK  1.0
Bouffalolab Software Development Kit
bflb_sec_trng.h
Go to the documentation of this file.
1 #ifndef _BFLB_SEC_TRNG_H
2 #define _BFLB_SEC_TRNG_H
3 
4 #include "bflb_core.h"
5 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
25 int bflb_trng_read(struct bflb_device_s *dev, uint8_t data[32]);
26 
34 int bflb_trng_readlen(uint8_t *data, uint32_t len);
35 
41 long random(void);
42 
49 
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
69 #endif
int bflb_trng_readlen(uint8_t *data, uint32_t len)
Read trng data with custom length.
long random(void)
Get trng data.
void bflb_group0_request_trng_access(struct bflb_device_s *dev)
Enable trng in group0.
int bflb_trng_read(struct bflb_device_s *dev, uint8_t data[32])
Read trng data.
void bflb_group0_release_trng_access(struct bflb_device_s *dev)
Disable trng in group0.