public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [PATCH 0/3] Platform/ARM/Juno: Use RngDxeLib
@ 2024-09-04 11:39 PierreGondois
  2024-09-04 11:39 ` [edk2-devel] [PATCH 1/3] Platform/ARM: Place MdeLibs.dsc.inc as the first include PierreGondois
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: PierreGondois @ 2024-09-04 11:39 UTC (permalink / raw)
  To: devel; +Cc: ardb+tianocore, sami.mujawar, Thomas Abraham, Pierre Gondois

From: Pierre Gondois <pierre.gondois@arm.com>

Juno's RngLib implementation is:

- BaseRngLib.inf if a secure RngLib is enforced
- BaseRngLibTimerLib.inf if a non-secure RngLib is tolerated

BaseRngLib.inf relies on the Arm's RNDR instruction. The instruction
returns a DRBG-generated random number. The DRBG used is considered
as secure.
The RNDR instruction is available if FEAT_RNG is set. The Juno doesn't
support it.

When security is enforced (i.e. ENABLE_UNSAFE_RNGLIB is not set),
the Juno cannot generate secure random numbers through the RngLib.
Secure random numbers could be generated by using the Juno's TRNG.
This can be done by:

- using the RngDxeLib implementation of the RngLib
- RngDxeLib relies on the RngDxe
- the RngDxe has access to the TRNG

Pierre Gondois (3):
  Platform/ARM: Place MdeLibs.dsc.inc as the first include
  Platform/ARM: Move PcdEnforceSecureRngAlgorithms to MdePkg
  Platform/ARM/Juno: Use DxeRngLib.inf as default RngLib implementation

 Platform/ARM/JunoPkg/ArmJuno.dsc              | 19 +++++++++++++++++--
 Platform/ARM/Morello/MorelloPlatformFvp.dsc   |  6 +++---
 Platform/ARM/N1Sdp/N1SdpPlatform.dsc          |  2 +-
 Platform/ARM/SgiPkg/RdE1Edge/RdE1Edge.dsc     |  6 +++---
 Platform/ARM/SgiPkg/RdN1Edge/RdN1Edge.dsc     |  6 +++---
 Platform/ARM/SgiPkg/RdN1EdgeX2/RdN1EdgeX2.dsc |  6 +++---
 Platform/ARM/SgiPkg/RdN2/RdN2.dsc             |  6 +++---
 Platform/ARM/SgiPkg/RdN2Cfg1/RdN2Cfg1.dsc     |  6 +++---
 Platform/ARM/SgiPkg/RdN2Cfg2/RdN2Cfg2.dsc     |  6 +++---
 Platform/ARM/SgiPkg/RdN2Cfg3/RdN2Cfg3.dsc     |  6 +++---
 Platform/ARM/SgiPkg/RdV1/RdV1.dsc             |  6 +++---
 Platform/ARM/SgiPkg/RdV1Mc/RdV1Mc.dsc         |  6 +++---
 Platform/ARM/SgiPkg/RdV3/RdV3.dsc             |  6 +++---
 Platform/ARM/SgiPkg/Sgi575/Sgi575.dsc         |  6 +++---
 .../VExpressPkg/ArmVExpress-FVP-AArch64.dsc   |  2 +-
 Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc  |  2 +-
 16 files changed, 56 insertions(+), 41 deletions(-)

-- 
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120490): https://edk2.groups.io/g/devel/message/120490
Mute This Topic: https://groups.io/mt/108262991/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-04 12:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04 11:39 [edk2-devel] [PATCH 0/3] Platform/ARM/Juno: Use RngDxeLib PierreGondois
2024-09-04 11:39 ` [edk2-devel] [PATCH 1/3] Platform/ARM: Place MdeLibs.dsc.inc as the first include PierreGondois
2024-09-04 11:39 ` [edk2-devel] [PATCH 2/3] Platform/ARM: Move PcdEnforceSecureRngAlgorithms to MdePkg PierreGondois
2024-09-04 11:39 ` [edk2-devel] [PATCH 3/3] Platform/ARM/Juno: Use DxeRngLib.inf as default RngLib implementation PierreGondois
2024-09-04 12:05 ` [edk2-devel] [PATCH 0/3] Platform/ARM/Juno: Use RngDxeLib Ard Biesheuvel via groups.io
2024-09-04 12:31 ` Sami Mujawar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox