data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
metadata
dict
source
edk2
/** @file This library is used by other modules to measure data to TPM and Confidential Computing (CC) measure registers. Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiDxe.h> #include <Protocol/TcgService.h> #include <Protoco...
SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.c
null
null
null
null
null
source
edk2
/** @file FMP Authentication PKCS7 handler. Provide generic FMP authentication functions for DXE/PEI post memory phase. Caution: This module requires additional review when modified. This module will have external input - capsule image. This external input must be validated carefully to avoid security issue ...
SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.c
null
null
null
null
null
source
edk2
/** @file FMP Authentication RSA2048SHA256 handler. Provide generic FMP authentication functions for DXE/PEI post memory phase. Caution: This module requires additional review when modified. This module will have external input - capsule image. This external input must be validated carefully to avoid securit...
SecurityPkg/Library/FmpAuthenticationLibRsa2048Sha256/FmpAuthenticationLibRsa2048Sha256.c
null
null
null
null
null
source
edk2
/** @file This library is BaseCrypto SHA1 hash instance. It can be registered to BaseCrypto router, to serve as hash engine. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/B...
SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.c
null
null
null
null
null
source
edk2
/** @file This library is BaseCrypto SHA256 hash instance. It can be registered to BaseCrypto router, to serve as hash engine. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library...
SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.c
null
null
null
null
null
source
edk2
/** @file This library is BaseCrypto SHA384 hash instance. It can be registered to BaseCrypto router, to serve as hash engine. Copyright (c) 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/BaseM...
SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.c
null
null
null
null
null
source
edk2
/** @file This library is BaseCrypto SHA512 hash instance. It can be registered to BaseCrypto router, to serve as hash engine. Copyright (c) 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/BaseMe...
SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.c
null
null
null
null
null
source
edk2
/** @file BaseCrypto SM3 hash instance library. It can be registered to BaseCrypto router, to serve as hash engine. Copyright (c) 2013 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/BaseMemo...
SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.c
null
null
null
null
null
source
edk2
/** @file This is BaseCrypto router support function. Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/Tpm2CommandLib.h> #include <Library/Deb...
SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCommon.c
null
null
null
null
null
source
edk2
/** @file This is BaseCrypto router support function definition. Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once /** The function get hash mask info from algorithm. @param HashGuid Hash Guid @return HashMask **/ UINT32 E...
SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCommon.h
null
null
null
null
null
source
edk2
/** @file This library is BaseCrypto router. It will redirect hash request to each individual hash handler registered, such as SHA1, SHA256. Platform can use PcdTpm2HashMask to mask some hash engines. Copyright (c) 2013 - 2024, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Pa...
SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.c
null
null
null
null
null
source
edk2
/** @file This library is BaseCrypto router. It will redirect hash request to each individual hash handler registered, such as SHA1, SHA256. Platform can use PcdTpm2HashMask to mask some hash engines. Copyright (c) 2013 - 2021, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Pa...
SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.c
null
null
null
null
null
source
edk2
/** @file This library uses TPM2 device to calculation hash. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/Ba...
SecurityPkg/Library/HashLibTpm2/HashLibTpm2.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2025, Arm Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Guid/TcgEventHob.h> #include <Guid/TpmInstance.h> #include <Guid/TransferListHob.h> #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/ArmTransferList...
SecurityPkg/Library/HashLibTpm2/HashLibTpm2PeilessSecLib.c
null
null
null
null
null
source
edk2
/** @file TPM Platform Hierarchy configuration library. This library provides functions for customizing the TPM's Platform Hierarchy Authorization Value (platformAuth) and Platform Hierarchy Authorization Policy (platformPolicy) can be defined through this function. Copyright (c) 2019, Intel Corpo...
SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.c
null
null
null
null
null
source
edk2
/** @file Null TPM Platform Hierarchy configuration library. This library provides stub functions for customizing the TPM's Platform Hierarchy. Copyright (c) 2021, IBM Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> /** A NULL implementation of ConfigureTpmPlatform...
SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.c
null
null
null
null
null
source
edk2
/** @file This library registers RSA 2048 SHA 256 guided section handler to parse RSA 2048 SHA 256 encapsulation section and extract raw data. It uses the BaseCryptLib based on OpenSSL to authenticate the signature. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: ...
SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.c
null
null
null
null
null
source
edk2
/** @file Get TPM 2.0 physical presence information. This library will get TPM 2.0 physical presence information. Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Guid/Tcg2PhysicalPresenceData.h> #include <Ppi/R...
SecurityPkg/Library/PeiTcg2PhysicalPresenceLib/PeiTcg2PhysicalPresenceLib.c
null
null
null
null
null
source
edk2
/** @file This library is used by other modules to measure data to TPM. Copyright (c) 2020, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseMemoryLib.h> #include <Library/PeiServicesLib.h> #include <Library/PeiServicesTablePoint...
SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2025, Arm Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Guid/TcgEventHob.h> #include <Guid/TpmInstance.h> #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/ArmTransferListLib.h> #include <Library/DebugLib....
SecurityPkg/Library/PeilessSecMeasureLib/PeilessSecMeasureLib.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2025, Arm Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Pi/PiMultiPhase.h> /** Measurement for PeilessSec. @retval EFI_SUCCESS Operation completed successfully. @retval EFI_INVALID_PARAMETER Invalid firmwa...
SecurityPkg/Library/PeilessSecMeasureLib/PeilessSecMeasureLibNull.c
null
null
null
null
null
source
edk2
/** @file Provides an abstracted interface for configuring PK related variable protection. Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Protocol/VariablePolicy.h> #include <Library/DebugLib.h> #include <Library/UefiBootServicesTableLib.h> /*...
SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.c
null
null
null
null
null
source
edk2
/** @file NULL PlatformSecureLib instance does NOT really detect whether a physical present user exists but return TRUE directly. This instance can be used to verify security related features during platform enabling and development. It should be replaced by a platform-specific method(e.g. Button pressed) in a ...
SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.c
null
null
null
null
null
source
edk2
/** @file Extend to RTMR and Build GuidHob for tdx measurement. Copyright (c) 2025, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/Ho...
SecurityPkg/Library/SecTpmMeasurementLib/IntelTdx.c
null
null
null
null
null
source
edk2
/** @file TpmMeasurementLib SEC implementation. Copyright (c) 2025, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/TpmMeasurementLib....
SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLib.c
null
null
null
null
null
source
edk2
/** @file This library provides helper functions to set/clear Secure Boot keys and databases. Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> (C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR> Copyright (c) 2021, ARM Ltd. All rights reserved.<BR> Copyright (c) 2021, Sem...
SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.c
null
null
null
null
null
source
edk2
/** @file Unit tests for the implementation of SecureBootVariableLib. Copyright (c) 2022, Intel Corporation. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/GoogleTestLib.h> #include <GoogleTest/Library/MockUefiLib.h> #include <GoogleTest/Library/MockUefiRuntimeServicesTab...
SecurityPkg/Library/SecureBootVariableLib/GoogleTest/SecureBootVariableLibGoogleTest.cpp
null
null
null
null
null
source
edk2
/** @file Provides a mocked interface for configuring PK related variable protection. Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <stdio.h> #include <string.h> #include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include <cmocka.h> #include <Uefi.h> /*...
SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockPlatformPKProtectionLib.c
null
null
null
null
null
source
edk2
/** @file The UEFI Library provides functions and macros that simplify the development of UEFI Drivers and UEFI Applications. These functions and macros help manage EFI events, build simple locks utilizing EFI Task Priority Levels (TPLs), install EFI Driver Model related protocols, manage Unicode string tables...
SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockUefiLib.c
null
null
null
null
null
source
edk2
/** @file Mock implementation of the UEFI Runtime Services Table Library. Copyright (C) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> extern EFI_RUNTIME_SERVICES gMockRuntime; EFI_RUNTIME_SERVICES *gRT = &gMockRuntime;
SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockUefiRuntimeServicesTableLib.c
null
null
null
null
null
source
edk2
/** @file Unit tests of the implementation of SecureBootVariableLib. Copyright (C) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <stdio.h> #include <string.h> #include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include <cmocka.h> #include <Uefi.h> #include <UefiSecu...
SecurityPkg/Library/SecureBootVariableLib/UnitTest/SecureBootVariableLibUnitTest.c
null
null
null
null
null
source
edk2
/** @file This library provides functions to set/clear Secure Boot keys and databases. Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> (C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR> Copyright (c) 2021, ARM Ltd. All rights reserved.<BR> Copyright (c) 2021, Semihalf A...
SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c
null
null
null
null
null
source
edk2
/** @file Handle TPM 2.0 physical presence requests from OS. This library will handle TPM 2.0 physical presence request from OS. Caution: This module requires additional review when modified. This driver will have external input - variable. This external input must be validated carefully to avoid security i...
SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/MmTcg2PhysicalPresenceLibCommon.c
null
null
null
null
null
source
edk2
/** @file Handle TPM 2.0 physical presence requests from OS. This library will handle TPM 2.0 physical presence request from OS. Caution: This module requires additional review when modified. This driver will have external input - variable. This external input must be validated carefully to avoid security i...
SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/MmTcg2PhysicalPresenceLibCommon.h
null
null
null
null
null
source
edk2
/** @file Handle TPM 2.0 physical presence requests from OS. This library will handle TPM 2.0 physical presence request from OS. Caution: This module requires additional review when modified. This driver will have external input - variable. This external input must be validated carefully to avoid security i...
SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/SmmTcg2PhysicalPresenceLib.c
null
null
null
null
null
source
edk2
/** @file Handle TPM 2.0 physical presence requests from OS. This library will handle TPM 2.0 physical presence request from OS. Caution: This module requires additional review when modified. This driver will have external input - variable. This external input must be validated carefully to avoid security i...
SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/StandaloneMmTcg2PhysicalPresenceLib.c
null
null
null
null
null
source
edk2
/** @file Handle TPM 2.0 physical presence requests from OS. This library will handle TPM 2.0 physical presence request from OS. Caution: This module requires additional review when modified. This driver will have external input - variable. This external input must be validated carefully to avoid security i...
SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/StandaloneMmTcg2PhysicalPresenceLibArm.c
null
null
null
null
null
source
edk2
/** @file NULL Tcg2 PP Vendor library instance that does not support any vendor specific PPI. Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/Tcg2PpVendorLib.h> /** Check and execute the reque...
SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.c
null
null
null
null
null
source
edk2
/** @file This library is used by other modules to measure data to TPM. Copyright (c) 2020, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi/UefiBaseType.h> #include <Pi/PiFirmwareVolume.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h>...
SecurityPkg/Library/TcgEventLogRecordLib/TcgEventLogRecordLib.c
null
null
null
null
null
source
edk2
/** @file NULL TCG PP Vendor library instance that does not support any vendor specific PPI. Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/TcgPpVendorLib.h> /** Check and execute the request...
SecurityPkg/Library/TcgPpVendorLibNull/TcgPpVendorLibNull.c
null
null
null
null
null
source
edk2
/** @file Provide functions to provide tcg storage core spec related functions. Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/TcgStorageCoreLib.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/...
SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCore.c
null
null
null
null
null
source
edk2
/** @file Provide functions to provide tcg storage core spec related functions. Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/TcgStorageCoreLib.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/...
SecurityPkg/Library/TcgStorageCoreLib/TcgStorageUtil.c
null
null
null
null
null
source
edk2
/** @file Public API for Opal Core library. Copyright (c) 2016 - 2021, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Library/BaseLib.h> #include <Library/TimerLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include ...
SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c
null
null
null
null
null
source
edk2
/** @file Internal functions for Opal Core library. Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Library/TcgStorageOpalLib.h> /** The function retrieves the MSID from the device specified @param[in] AdminSpSession ...
SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalLibInternal.h
null
null
null
null
null
source
edk2
/** @file Public API for Opal Core library. Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/TcgStorageOpalLib.h> #include "TcgStorageOpalLibInternal....
SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
null
null
null
null
null
source
edk2
/** @file Implement TPM1.2 Get Capabilities related commands. Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/Tpm12CommandLib.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library...
SecurityPkg/Library/Tpm12CommandLib/Tpm12GetCapability.c
null
null
null
null
null
source
edk2
/** @file Implement TPM1.2 NV storage related command. Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved. <BR> (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/Tpm12CommandLib.h> #include <Library/...
SecurityPkg/Library/Tpm12CommandLib/Tpm12NvStorage.c
null
null
null
null
null
source
edk2
/** @file Implement TPM1.2 Ownership related command. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseMemoryLib.h> #include <Library/BaseLib.h> #include <Library/Tpm12DeviceLib.h> /** Send ForceClea...
SecurityPkg/Library/Tpm12CommandLib/Tpm12Ownership.c
null
null
null
null
null
source
edk2
/** @file Implement TPM1.2 PCR related commands. Copyright (c) 2016, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/Tpm12CommandLib.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/BaseMemoryLib.h> #i...
SecurityPkg/Library/Tpm12CommandLib/Tpm12Pcr.c
null
null
null
null
null
source
edk2
/** @file Implement TPM1.2 Physical Presence related command. Copyright (c) 2016, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/Tpm12CommandLib.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/Tpm12D...
SecurityPkg/Library/Tpm12CommandLib/Tpm12PhysicalPresence.c
null
null
null
null
null
source
edk2
/** @file Implement TPM1.2 NV Self Test related commands. Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved. <BR> (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/Tpm12CommandLib.h> #include <Libra...
SecurityPkg/Library/Tpm12CommandLib/Tpm12SelfTest.c
null
null
null
null
null
source
edk2
/** @file Implement TPM1.2 Startup related command. Copyright (c) 2013, Intel Corporation. All rights reserved. <BR> (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseMemoryLib.h> #include <Library/BaseLib.h> #...
SecurityPkg/Library/Tpm12CommandLib/Tpm12Startup.c
null
null
null
null
null
source
edk2
/** @file TIS (TPM Interface Specification) functions used by TPM1.2. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR> (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <IndustryStandard/Tpm12.h> #inclu...
SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12Tis.c
null
null
null
null
null
source
edk2
/** @file This library is TPM12 TCG protocol lib. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/UefiBootServic...
SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 Capability related command. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/BaseMe...
SecurityPkg/Library/Tpm2CommandLib/Tpm2Capability.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 Context related command. Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/BaseMemor...
SecurityPkg/Library/Tpm2CommandLib/Tpm2Context.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 DictionaryAttack related command. Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/...
SecurityPkg/Library/Tpm2CommandLib/Tpm2DictionaryAttack.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 EnhancedAuthorization related command. Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Lib...
SecurityPkg/Library/Tpm2CommandLib/Tpm2EnhancedAuthorization.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 help. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/BaseMemoryLib.h> #include <L...
SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 Hierarchy related command. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/BaseMem...
SecurityPkg/Library/Tpm2CommandLib/Tpm2Hierarchy.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 Integrity related command. Copyright (c) 2013 - 2021, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/BaseMem...
SecurityPkg/Library/Tpm2CommandLib/Tpm2Integrity.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 Miscellaneous related command. Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/Bas...
SecurityPkg/Library/Tpm2CommandLib/Tpm2Miscellaneous.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 NVStorage related command. Copyright (c) 2013 - 2024, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/BaseMem...
SecurityPkg/Library/Tpm2CommandLib/Tpm2NVStorage.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 Object related command. Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/BaseMemory...
SecurityPkg/Library/Tpm2CommandLib/Tpm2Object.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 Sequences related command. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/BaseMem...
SecurityPkg/Library/Tpm2CommandLib/Tpm2Sequences.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 Session related command. Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/BaseMemor...
SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 Startup related command. Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved. <BR> (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib....
SecurityPkg/Library/Tpm2CommandLib/Tpm2Startup.c
null
null
null
null
null
source
edk2
/** @file Implement TPM2 Test related command. Copyright (c) 2013, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/Tpm2CommandLib.h> #include <Library/Tpm2DeviceLib.h> #include <Library/BaseMemoryLib.h> #i...
SecurityPkg/Library/Tpm2CommandLib/Tpm2Test.c
null
null
null
null
null
source
edk2
/** @file This library is TPM2 DTPM device lib. Choosing this library means platform uses and only uses DTPM device as TPM2 engine. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/BaseMemoryLib...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.c
null
null
null
null
null
source
edk2
/** @file This header file includes common internal fuction prototypes. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once /** Return PTP interface type. @param[in] Register ...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.h
null
null
null
null
null
source
edk2
/** @file This file abstract internal interfaces of which implementation differs per library instance. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/Tpm2DeviceLib.h> #include <Library/P...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpmBase.c
null
null
null
null
null
source
edk2
/** @file -- Tpm2DeviceLibDTpmDump.c This file contains helper functions to perform a detailed debugging of TPM transactions as they go to and from the TPM device. Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Library/DebugLib.h> #include <Library/B...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpmDump.c
null
null
null
null
null
source
edk2
/** @file This file abstract internal interfaces of which implementation differs per library instance. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/Tpm2DeviceLib.h> #include "Tpm2Devi...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpmStandaloneMm.c
null
null
null
null
null
source
edk2
/** @file This library is a TPM2 DTPM instance, supporting SVSM based vTPMs and regular TPM2s at the same time. Choosing this library means platform uses and only uses DTPM device as TPM2 engine. Copyright (c) 2024 Red Hat SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpmSvsm.c
null
null
null
null
null
source
edk2
/** @file This library is TPM2 DTPM instance. It can be registered to Tpm2 Device router, to be active TPM2 engine, based on platform setting. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.c
null
null
null
null
null
source
edk2
/** @file This library is a TPM2 DTPM instance, supporting SVSM based vTPMs and regular TPM2s at the same time. It can be registered to Tpm2 Device router, to be active TPM2 engine, based on platform setting. Copyright (c) 2024 Red Hat SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseL...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpmSvsm.c
null
null
null
null
null
source
edk2
/** @file PTP (Platform TPM Profile) CRB (Command Response Buffer) interface used by DTPM2.0 library. Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR> Copyright (c), Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Tpm20.h> #include <Library/...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Ptp.c
null
null
null
null
null
source
edk2
/** @file PTP (Platform TPM Profile) CRB (Command Response Buffer) interface used by DTPM2.0 library. Copyright (c) 2024 Red Hat SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #ifndef TPM2_PTP_H_ #define TPM2_PTP_H_ /** Dump PTP register information. @param[in] Register Po...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Ptp.h
null
null
null
null
null
source
edk2
/** @file PTP (Platform TPM Profile) CRB (Command Response Buffer) interface shim that switches between SVSM vTPM Ptp and regular Ptp implementations. Use TryUseSvsmVTpm () do check for SVSM vTPM presnece and initialzie the shim. The SVSM vTPM presence state is cached across library instances. Copyright (c) ...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2PtpSvsmShim.c
null
null
null
null
null
source
edk2
/** @file PTP (Platform TPM Profile) CRB (Command Response Buffer) interface shim that switches between SVSM vTPM Ptp and regular Ptp implementations. Use TryUseSvsmVTpm () do check for SVSM vTPM presnece and initialzie the shim. Copyright (c) 2024 Red Hat SPDX-License-Identifier: BSD-2-Clause-Patent **/ BOOL...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2PtpSvsmShim.h
null
null
null
null
null
source
edk2
/** @file SVSM TPM communication Copyright (C) 2024 James.Bottomley@HansenPartnership.com Copyright (C) 2024 IBM Corporation Copyright (C) 2024 Red Hat SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/MemoryAllocat...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Svsm.c
null
null
null
null
null
source
edk2
/** @file SVSM TPM communication Copyright (C) 2024 James.Bottomley@HansenPartnership.com Copyright (C) 2024 IBM Corporation Copyright (C) 2024 Red Hat SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> BOOLEAN Tpm2SvsmQueryTpmSendCmd ( VOID ); EFI_STATUS Tpm2SvsmTpmSendCommand ( ...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Svsm.h
null
null
null
null
null
source
edk2
/** @file TIS (TPM Interface Specification) functions used by dTPM2.0 library. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR> (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Tpm20.h> #include <Libr...
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c
null
null
null
null
null
source
edk2
/** @file This library provides an implementation of Tpm2DeviceLib using ARM64 SMC calls to request TPM service. The implementation is only supporting the Command Response Buffer (CRB) for sharing data with the TPM. Copyright (c), Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #...
SecurityPkg/Library/Tpm2DeviceLibFfa/Tpm2DeviceLibFfa.c
null
null
null
null
null
source
edk2
/** @file Provides function interfaces to communicate with TPM 2.0 device This library helps to use TPM 2.0 device in library function API based on SMC using Command Response Buffer (CRB). The TPM2DeviceLib library is sitting at the bottom of the TPM stack in UEFI. It is responsible for sending and receivin...
SecurityPkg/Library/Tpm2DeviceLibFfa/Tpm2DeviceLibFfa.h
null
null
null
null
null
source
edk2
/** @file This library provides an implementation of Tpm2DeviceLib using ARM64 SMC calls to request TPM service. The implementation is only supporting the Command Response Buffer (CRB) for sharing data with the TPM. Copyright (c), Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #...
SecurityPkg/Library/Tpm2DeviceLibFfa/Tpm2DeviceLibFfaBase.c
null
null
null
null
null
source
edk2
/** @file This library provides an interfaces to access DynamicPcds used in Tpm2DeviceLibFfa. Copyright (c) 2025, Arm Ltd. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/PcdLib.h> #include <Library/Tpm2De...
SecurityPkg/Library/Tpm2DeviceLibFfa/Tpm2InfoFfa.c
null
null
null
null
null
source
edk2
/** @file This library provides an interfaces to access DynamicPcds used in Tpm2DeviceLibFfa. Copyright (c) 2025, Arm Ltd. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/Tpm2DeviceLib.h> #include <Uefi/Ue...
SecurityPkg/Library/Tpm2DeviceLibFfa/Tpm2InfoSecFfa.c
null
null
null
null
null
source
edk2
/** @file This library provides an implementation of Tpm2DeviceLib using ARM64 SMC calls to request TPM service. The implementation is only supporting the Command Response Buffer (CRB) for sharing data with the TPM. Copyright (c), Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #...
SecurityPkg/Library/Tpm2DeviceLibFfa/Tpm2InstanceLibFfa.c
null
null
null
null
null
source
edk2
/** @file PTP (Platform TPM Profile) CRB (Command Response Buffer) interface used by dTPM2.0 library. Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR> Copyright (c), Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Tpm20.h> #include <Li...
SecurityPkg/Library/Tpm2DeviceLibFfa/Tpm2Ptp.c
null
null
null
null
null
source
edk2
/** @file This library provides an implementation of Tpm2DeviceLib using ARM64 SMC calls to request TPM service. The implementation is only supporting the Command Response Buffer (CRB) for sharing data with the TPM. Copyright (c), Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ ...
SecurityPkg/Library/Tpm2DeviceLibFfa/Tpm2ServiceFfaRaw.c
null
null
null
null
null
source
edk2
/** @file This library is TPM2 device router. Platform can register multi TPM2 instance to it via PcdTpmInstanceGuid. Platform need make choice that which one will be final one. At most one TPM2 instance can be finally registered, and other will return unsupported. Copyright (c) 2013 - 2018, Intel Corporation. A...
SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.c
null
null
null
null
null
source
edk2
/** @file This library is TPM2 device router. Platform can register multi TPM2 instance to it via PcdTpmInstanceGuid. Platform need make choice that which one will be final one. At most one TPM2 instance can be finally registered, and other will return unsupported. Copyright (c) 2013 - 2018, Intel Corporation. A...
SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.c
null
null
null
null
null
source
edk2
/** @file This library is TPM2 TCG2 protocol lib. Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/UefiBootServicesTableLib.h> #inc...
SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.c
null
null
null
null
null
source
edk2
/** @file The internal header file for TpmCommLib. Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <PiPei.h> #include <IndustryStandard/Tpm12.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <L...
SecurityPkg/Library/TpmCommLib/CommonHeader.h
null
null
null
null
null
source
edk2
/** @file Basic TIS (TPM Interface Specification) functions. Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "CommonHeader.h" /** Check whether TPM chip exist. @param[in] TisReg Pointer to TIS register. @retval TRUE TP...
SecurityPkg/Library/TpmCommLib/TisPc.c
null
null
null
null
null
source
edk2
/** @file Basic TPM command functions. Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "CommonHeader.h" /** Single function calculates SHA1 digest value for all raw data. It combines Sha1Init(), Sha1Update() and Sha1Final(). @...
SecurityPkg/Library/TpmCommLib/TpmComm.c
null
null
null
null
null
source
edk2
/** @file Pkcs7Verify Driver to produce the UEFI PKCS7 Verification Protocol. The driver will produce the UEFI PKCS7 Verification Protocol which is used to verify data signed using PKCS7 structure. The PKCS7 data to be verified must be ASN.1 (DER) encoded. Copyright (c) 2015 - 2017, Intel Corporation. All rig...
SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.c
null
null
null
null
null
source
edk2
/** @file RNG Driver to produce the UEFI Random Number Generator protocol. The driver can use RNDR instruction (through the RngLib and if FEAT_RNG is present) to produce random numbers. It also uses the Arm FW-TRNG interface to implement EFI_RNG_ALGORITHM_RAW. RNG Algorithms defined in UEFI 2.4: - EFI_RN...
SecurityPkg/RandomNumberGenerator/RngDxe/ArmRngDxe.c
null
null
null
null
null
source
edk2
/** @file RNG Driver to produce the UEFI Random Number Generator protocol. The driver implements the EFI_RNG_ALGORITHM_RAW using the FW-TRNG interface to provide entropy. Copyright (c) 2021 - 2022, Arm Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/Ba...
SecurityPkg/RandomNumberGenerator/RngDxe/ArmTrng.c
null
null
null
null
null