On Tue, Feb 14, 2023 at 01:17:55AM +0000, Yao, Jiewen wrote: > Good work, Gerd! > > Do you have any data on how many K can be saved?
Essentially we are down to a handfull of source files for SEC and PEI, assuming both only need hash functions for tdx/tpm measurements. https://github.com/kraxel/edk2/commit/58f323f68dfaeaf4b88a8658790f0b0a4b578642 SMM and DXE are still a significant increase in size and I don't see an easy way around that. Switching to the crypto driver should mitigate that somewhat. Don't have detailed numbers at hand. take care, Gerd > > > -----Original Message----- > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Gerd > > Hoffmann > > Sent: Tuesday, February 14, 2023 3:20 AM > > To: devel@edk2.groups.io > > Cc: Oliver Steffen <ostef...@redhat.com>; Pawel Polawski > > <ppola...@redhat.com>; Gerd Hoffmann <kra...@redhat.com> > > Subject: [edk2-devel] [PATCH 0/4] CryptoPkg/BaseCryptLib: avoid certain > > openssl library calls > > > > In preparation for the openssl 3.0 switch ... > > > > openssl 3.0 sneak preview (WIP still, does not yet pass CI) is at > > https://github.com/kraxel/edk2/commits/openssl3 > > > > Gerd Hoffmann (4): > > CryptoPkg/BaseCryptLib: avoid using SHA1() > > CryptoPkg/BaseCryptLib: avoid using SHA256() > > CryptoPkg/BaseCryptLib: avoid using SHA384() > > CryptoPkg/BaseCryptLib: avoid using SHA512() > > > > .../Library/BaseCryptLib/Hash/CryptSha1.c | 16 ++++++++-- > > .../Library/BaseCryptLib/Hash/CryptSha256.c | 16 ++++++++-- > > .../Library/BaseCryptLib/Hash/CryptSha512.c | 32 +++++++++++++++---- > > 3 files changed, 52 insertions(+), 12 deletions(-) > > > > -- > > 2.39.1 > > > > > > > > > > > -- -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100167): https://edk2.groups.io/g/devel/message/100167 Mute This Topic: https://groups.io/mt/96943599/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-