From: "Rebecca Cran" <rebecca@nuviainc.com>
To: devel@edk2.groups.io, gaoliming@byosoft.com.cn
Cc: 'Jiewen Yao' <jiewen.yao@intel.com>,
'Jian J Wang' <jian.j.wang@intel.com>,
'Michael D Kinney' <michael.d.kinney@intel.com>,
'Zhiguang Liu' <zhiguang.liu@intel.com>,
'Ard Biesheuvel' <ardb+tianocore@kernel.org>,
'Sami Mujawar' <Sami.Mujawar@arm.com>
Subject: Re: [edk2-devel] 回复: [PATCH 1/3] MdePkg/BaseLib: Add support for ARMv8.5 RNG instructions
Date: Wed, 5 May 2021 15:02:33 -0600 [thread overview]
Message-ID: <ec1a7a64-720b-0007-fb9e-35066eb6abb9@nuviainc.com> (raw)
In-Reply-To: <003d01d73c94$2e7e6260$8b7b2720$@byosoft.com.cn>
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
next prev parent reply other threads:[~2021-05-05 21:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-28 20:44 [PATCH 0/3] MdePkg,SecurityPkg: Update BaseRngLib and RngDxe to support ARMv8.5 FEAT_RNG Rebecca Cran
2021-04-28 20:44 ` [PATCH 1/3] MdePkg/BaseLib: Add support for ARMv8.5 RNG instructions Rebecca Cran
2021-04-29 1:08 ` 回复: " gaoliming
2021-05-05 21:02 ` Rebecca Cran [this message]
2021-05-04 21:06 ` Sami Mujawar
2021-05-04 21:42 ` Rebecca Cran
2021-04-28 20:44 ` [PATCH 2/3] MdePkg: Refactor BaseRngLib to support AARCH64 in addition to X86 Rebecca Cran
2021-04-29 1:10 ` 回复: " gaoliming
2021-04-29 3:01 ` [edk2-devel] " Rebecca Cran
2021-05-04 21:09 ` Sami Mujawar
2021-05-05 19:27 ` [edk2-devel] " Rebecca Cran
2021-05-06 21:47 ` Rebecca Cran
2021-04-28 20:44 ` [PATCH 3/3] SecurityPkg: Add support for RngDxe on AARCH64 Rebecca Cran
2021-04-29 1:13 ` 回复: " gaoliming
2021-04-29 15:50 ` [edk2-devel] " Rebecca Cran
2021-04-29 10:35 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ec1a7a64-720b-0007-fb9e-35066eb6abb9@nuviainc.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox