aboutsummaryrefslogtreecommitdiffstats
path: root/bl2u
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2020-10-08 00:43:50 +0100
committerAndre Przywara <andre.przywara@arm.com>2021-02-11 10:43:25 +0000
commit543f0d8b0864b232f014a0fb9d98e46ed52d4442 (patch)
tree95f9b6c7c7f3bc50e1d6e9b224b37c5e557c58be /bl2u
parent0e14948e2ae2c0b491a1cf2e2de00433e4a95dbe (diff)
downloadplatform_external_arm-trusted-firmware-543f0d8b0864b232f014a0fb9d98e46ed52d4442.tar.gz
platform_external_arm-trusted-firmware-543f0d8b0864b232f014a0fb9d98e46ed52d4442.tar.bz2
platform_external_arm-trusted-firmware-543f0d8b0864b232f014a0fb9d98e46ed52d4442.zip
plat/arm: juno: Refactor juno_getentropy()
Currently we use the Juno's TRNG hardware entropy source to initialise the stack canary. The current function allows to fill a buffer of any size, but we will actually only ever request 16 bytes, as this is what the hardware implements. Out of this, we only need at most 64 bits for the canary. In preparation for the introduction of the SMCCC TRNG interface, we can simplify this Juno specific interface by making it compatible with the generic one: We just deliver 64 bits of entropy on each call. This reduces the complexity of the code. As the raw entropy register readouts seem to be biased, it makes sense to do some conditioning inside the juno_getentropy() function already. Also initialise the TRNG hardware, if not already done. Change-Id: I11b977ddc5417d52ac38709a9a7b61499eee481f Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'bl2u')
0 files changed, 0 insertions, 0 deletions