diff options
author | Min M Xu <min.m.xu@intel.com> | 2024-04-15 15:55:51 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-04-17 03:04:13 +0000 |
commit | 93ff80a218690736d58d1bb8ded8bad8ec59c336 (patch) | |
tree | 62a32fe6b66c4750faa2af987c925398525a3f28 /OvmfPkg/Library/HashLibTdx/HashLibTdx.inf | |
parent | 71aaf7a3086f63bb2a883e3371317c700a0f8e69 (diff) | |
download | edk2-93ff80a218690736d58d1bb8ded8bad8ec59c336.tar.gz edk2-93ff80a218690736d58d1bb8ded8bad8ec59c336.tar.bz2 edk2-93ff80a218690736d58d1bb8ded8bad8ec59c336.zip |
OmvfPkg/HashLibTdx: Add HashLibTdx
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4752
This library is the one of SecurityPkg/Library/HashLibTdx. It is
designed for Intel TDX enlightened OVMF. So moving it from SecurityPkg
to OvmfPkg. To prevent breaking the build, the moving is splitted into 2
patch. SecurityPkg/Library/HashLibTdx will be deleted in the next patch.
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'OvmfPkg/Library/HashLibTdx/HashLibTdx.inf')
-rw-r--r-- | OvmfPkg/Library/HashLibTdx/HashLibTdx.inf | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/OvmfPkg/Library/HashLibTdx/HashLibTdx.inf b/OvmfPkg/Library/HashLibTdx/HashLibTdx.inf new file mode 100644 index 0000000000..946132124c --- /dev/null +++ b/OvmfPkg/Library/HashLibTdx/HashLibTdx.inf @@ -0,0 +1,37 @@ +## @file
+# Provides hash service by registered hash handler in Tdx.
+#
+# This library is HashLib for Tdx. Currently only SHA384 is supported.
+#
+# Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.<BR>
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+
+[Defines]
+ INF_VERSION = 0x00010005
+ BASE_NAME = HashLibTdx
+ FILE_GUID = 77F6EA3E-1ABA-4467-A447-926E8CEB2D13
+ MODULE_TYPE = BASE
+ VERSION_STRING = 1.0
+ LIBRARY_CLASS = HashLib|SEC DXE_DRIVER
+
+#
+# The following information is for reference only and not required by the build tools.
+#
+# VALID_ARCHITECTURES = X64
+#
+
+[Sources]
+ HashLibTdx.c
+
+[Packages]
+ MdePkg/MdePkg.dec
+ SecurityPkg/SecurityPkg.dec
+
+[LibraryClasses]
+ BaseLib
+ BaseMemoryLib
+ DebugLib
+ PcdLib
+ TdxLib
|