1 #ifndef _BFLB_SEC_TRNG_H 2 #define _BFLB_SEC_TRNG_H 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.