From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: Matthew Carlson <macarl@microsoft.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>,
"Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] [Patch v2 0/2] Use RngLib instead of TimerLib for OpensslLib
Date: Fri, 31 Jul 2020 20:39:33 +0000 [thread overview]
Message-ID: <MN2PR11MB4461CAFAA32C96AD419128F0D24E0@MN2PR11MB4461.namprd11.prod.outlook.com> (raw)
In-Reply-To: <7762.1596226545346567006@groups.io>
[-- Attachment #1: Type: text/plain, Size: 1642 bytes --]
Hi Matt,
I know you can use the Null lib and have the module be function. The Package DSC is for build verification. Does not have to be functional. We already have examples in the Security using a Null BaseCryptLib to improve build verification performance, but of course those security modules as built would not run.
I know one goal is to build functional binaries from the CryptoPkg. Perhaps that should be a different DSC file?
The typo is True -> TRUE and False -> FALSE
Mike
From: macarl via [] <macarl=microsoft.com@[]>
Sent: Friday, July 31, 2020 1:16 PM
To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io
Subject: Re: [edk2-devel] [Patch v2 0/2] Use RngLib instead of TimerLib for OpensslLib
Hey Mike!
Thanks for the comments. I've addressed the feedback below.
1. All good comments. I think I've addressed them all. New patch series should be coming soon.
2. This is a problem for BaseCryptLibOnProtocol. We can't use a null lib for RngLib since it explodes when it tries to seed OpenSSL with entropy. I think for now, let's stick with established dependencies and figure this out at a later date. I added an RngLib that uses the DXE RNG Protocol.
3. I don't see a typo?
Calls RandomNumber64 to fill
a buffer of arbitrary size with random bytes.
@param[in] Length Size of the buffer, in bytes, to fill with.
@param[out] RandBuffer Pointer to the buffer to store the random result.
@retval True Random bytes generation succeeded.
@retval False Failed to request random bytes.
--
- Matthew Carlson
[-- Attachment #2: Type: text/html, Size: 45505 bytes --]
next prev parent reply other threads:[~2020-07-31 20:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-30 17:21 [Patch v2 0/2] Use RngLib instead of TimerLib for OpensslLib Matthew Carlson
2020-07-30 17:21 ` [Patch v2 1/2] CryptoPkg: OpensslLib: Use RngLib to generate entropy in rand_pool Matthew Carlson
2020-07-30 17:21 ` [Patch v2 2/2] MdePkg: TimerRngLib: Added RngLib that uses TimerLib Matthew Carlson
2020-07-30 22:25 ` [edk2-devel] [Patch v2 0/2] Use RngLib instead of TimerLib for OpensslLib Michael D Kinney
2020-07-31 20:15 ` Matthew Carlson
2020-07-31 20:39 ` Michael D Kinney [this message]
2020-07-31 22:24 ` Matthew Carlson
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=MN2PR11MB4461CAFAA32C96AD419128F0D24E0@MN2PR11MB4461.namprd11.prod.outlook.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