mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00

This adds the TRNG Firmware Interface Service to the standard service dispatcher. This includes a method for dispatching entropy requests to platforms and includes an entropy pool implementation to avoid dropping any entropy requested from the platform. Change-Id: I71cadb3cb377a507652eca9e0d68714c973026e9 Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
18 lines
337 B
C
18 lines
337 B
C
/*
|
|
* Copyright (c) 2021, ARM Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PLAT_TRNG_H
|
|
#define PLAT_TRNG_H
|
|
|
|
#include <tools_share/uuid.h>
|
|
|
|
/* TRNG platform functions */
|
|
|
|
extern uuid_t plat_trng_uuid;
|
|
void plat_entropy_setup(void);
|
|
bool plat_get_entropy(uint64_t *out);
|
|
|
|
#endif /* PLAT_TRNG_H */
|