mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-18 16:18:12 +02:00
Create a special OpensslLib implementation that only exposes the SM3 routines that MbedTlsLib borrows from OpensslLib, to avoid having to pull in other parts of OpenSSL that are not needed (e.g., via the library constructor) Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
31 lines
769 B
INI
31 lines
769 B
INI
## @file
|
|
# Minimal OpensslLib implementation that only provides SM3 and nothing else.
|
|
# Needed by MbedTlsLib.
|
|
#
|
|
# Copyright (c) 2024, Google LLC. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 1.30
|
|
BASE_NAME = OpensslLibSm3
|
|
FILE_GUID = 96469bab-9c3f-4a60-a583-71a8bda64ec9
|
|
MODULE_TYPE = BASE
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = OpensslLib
|
|
|
|
DEFINE OPENSSL_PATH = openssl
|
|
|
|
[Sources]
|
|
$(OPENSSL_PATH)/crypto/sm3/sm3.c
|
|
OpensslStub/OpensslCleanse.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
CryptoPkg/CryptoPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseMemoryLib
|