fix(trng): avoid undefined behaviour in pack_entropyWhen nbits is a multiple of the word size, the pack_entropy functionright shifts the mask by the type width, which is undefined. Inpractice, th
fix(trng): avoid undefined behaviour in pack_entropyWhen nbits is a multiple of the word size, the pack_entropy functionright shifts the mask by the type width, which is undefined. Inpractice, the 64-bit shift compiles to a no-op and the implementationdepends on this behaviour, so this patch changes the function to skipthe masking if nbits is multiple of the word size.Change-Id: I478b8102aae0a1d49182e7a8a55f70fd9438b9f9Signed-off-by: Jamie Fox <jamiefox@google.com>
show more ...
refactor(trng): discarding the used entropy bitsThis patch discards all the used entropy bits from the global memorypool after being delivered to the requester (lower exception levels) byoverwrit
refactor(trng): discarding the used entropy bitsThis patch discards all the used entropy bits from the global memorypool after being delivered to the requester (lower exception levels) byoverwriting them with zeroes.It effectively implements the requirement, as part of TRNG FW interfacelisted at DEN0098 (section 1.2).https://developer.arm.com/documentation/den0098/latestChange-Id: I447cbccc1a8ad972418a3569c99f010189d4b2f6Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
refactor(trng): cleanup the existing TRNG supportThis patch adds the following changes to complete the existingTRNG implementation:1. Adds a feature specific scope for buildlog generation.2. Up
refactor(trng): cleanup the existing TRNG supportThis patch adds the following changes to complete the existingTRNG implementation:1. Adds a feature specific scope for buildlog generation.2. Updates the docs on the build flag "TRNG_SUPPORT" and its values.3. Makefile update and improves the existing comments at few sectionsfor better understanding of the underlying logic.Change-Id: I3f72f0ccd5c94005a2df87158cf23199d2160d37Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
Add TRNG Firmware Interface serviceThis adds the TRNG Firmware Interface Service to the standardservice dispatcher. This includes a method for dispatching entropyrequests to platforms and include
Add TRNG Firmware Interface serviceThis adds the TRNG Firmware Interface Service to the standardservice dispatcher. This includes a method for dispatching entropyrequests to platforms and includes an entropy pool implementation toavoid dropping any entropy requested from the platform.Change-Id: I71cadb3cb377a507652eca9e0d68714c973026e9Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>Signed-off-by: Andre Przywara <andre.przywara@arm.com>