]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(trng): discarding the used entropy bits
authorJayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
Thu, 3 Nov 2022 14:22:20 +0000 (14:22 +0000)
committerJayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
Mon, 14 Nov 2022 10:08:56 +0000 (10:08 +0000)
commitdb1c6faa0aac8e25369ab82c600c54fb5d2de647
treef3ac20451523ecba90dd44a02a529cd500656f98
parent2b138c6b314c458b70c09b628acf0c055dd25a0b
refactor(trng): discarding the used entropy bits

This patch discards all the used entropy bits from the global memory
pool after being delivered to the requester (lower exception levels) by
overwriting them with zeroes.
It effectively implements the requirement, as part of TRNG FW interface
listed at DEN0098 (section 1.2).
https://developer.arm.com/documentation/den0098/latest

Change-Id: I447cbccc1a8ad972418a3569c99f010189d4b2f6
Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
services/std_svc/trng/trng_entropy_pool.c