123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef MBED_TRNG_API_H
- #define MBED_TRNG_API_H
- #include <stddef.h>
- #include "device.h"
- #if DEVICE_TRNG
- typedef struct trng_s trng_t;
- #ifdef __cplusplus
- extern "C" {
- #endif
- void trng_init(trng_t *obj);
- void trng_free(trng_t *obj);
- int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_length);
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
|