1 /* 2 * Copyright (c) 2023, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef __CC3XX_RNG_EXTERNAL_TRNG_H__ 9 #define __CC3XX_RNG_EXTERNAL_TRNG_H__ 10 11 #include "cc3xx_error.h" 12 13 #include <stdint.h> 14 #include <stddef.h> 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 cc3xx_err_t rng_get_random(uint8_t* buf, size_t length); 21 22 #ifdef __cplusplus 23 } 24 #endif 25 26 #endif /* __CC3XX_RNG_EXTERNAL_TRNG_H__ */ 27