Re: [edk2-devel] 回复: [PATCH 1/3] MdePkg/BaseLib: Add support for ARMv8.5 RNG instructions
Rebecca Cran
rebecca at nuviainc.com
Wed May 5 21:02:33 UTC 2021
On 4/28/21 7:08 PM, gaoliming wrote:
> Rebecca:
> Can you submit one BZ for this new feature?
Create https://bugzilla.tianocore.org/show_bug.cgi?id=3368
>> +/**
>> + Generates a random number using the RNDRRS instruction.
>> +
>> + @param[out] The generated random number
>> +
>> + @retval TRUE Success: a random number was successfully generated
>> + @retval FALSE Failure: a random number was unable to be generated
>> +
>> +**/
>> +BOOLEAN
>> +EFIAPI
>> +ArmRndrrs (
>> + OUT UINT64 *Rand
>> + );
>> +
>
> What usage is for this API ArmRndrrs()? I don't see it is used in RngLib.
It's not used at the moment, but it uses the RNDRRS instruction, which
re-seeds the PRNG immediately before generating a random number.
--
Rebecca Cran
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#74780): https://edk2.groups.io/g/devel/message/74780
Mute This Topic: https://groups.io/mt/82445564/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list