1 /* 2 * Copyright (c) 2022, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef __TFM_FIH_RNG_H__ 9 #define __TFM_FIH_RNG_H__ 10 11 #include "fih.h" 12 13 /** 14 * \brief Set up the RNG for FIH with random delays. 15 */ 16 fih_int tfm_fih_random_init(void); 17 18 /** 19 * \brief Get a random number from an RNG seeded with an entropy source. 20 * 21 * \param[out] rand Buffer to hold the random value 22 */ 23 void tfm_fih_random_generate(uint8_t *rand); 24 25 #endif /* __TFM_FIH_RNG_H__ */ 26