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 file defines the EDKII Redfish Platform Config Protocol private structure.
(C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>... | RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.h | null | null | null | null | null |
source | edk2 | /** @file
Implementation of EFI_COMPONENT_NAME_PROTOCOL and EFI_COMPONENT_NAME2_PROTOCOL
protocol.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <L... | RedfishPkg/RedfishRestExDxe/ComponentName.c | null | null | null | null | null |
source | edk2 | /** @file
The driver binding and service binding protocol for Redfish RestExDxe driver.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2023-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Copyright (C)... | RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c | null | null | null | null | null |
source | edk2 | /** @file
RedfishRestExDxe support functions definitions.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2023, Ampere Computing LLC. All rights reserved.<BR>
Copyright (C) 2024 Advanced Micro Devices, Inc. All rig... | RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.h | null | null | null | null | null |
source | edk2 | /** @file
RestExDxe support functions implementation.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2023, American Megatrends International LLC.
Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights res... | RedfishPkg/RedfishRestExDxe/RedfishRestExImpl.c | null | null | null | null | null |
source | edk2 | /** @file
RedfishRestExDxe support functions definitions.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2019-2020 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Pate... | RedfishPkg/RedfishRestExDxe/RedfishRestExInternal.h | null | null | null | null | null |
source | edk2 | /** @file
Implementation of Redfish EFI_REST_EX_PROTOCOL interfaces.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2023, American Megatrends International LLC.
Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES... | RedfishPkg/RedfishRestExDxe/RedfishRestExProtocol.c | null | null | null | null | null |
source | edk2 | /** @file
The implementation of EFI REST Resource JSON to C structure convertor
Protocol.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <... | RedfishPkg/RestJsonStructureDxe/RestJsonStructureDxe.c | null | null | null | null | null |
source | edk2 | /** @file
The internal definitions of EFI REST Resource JSON to C structure convertor
Protocol.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include ... | RedfishPkg/RestJsonStructureDxe/RestJsonStructureInternal.h | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseCryptLib.h>
#include <Librar... | SecurityPkg/DeviceSecurity/OsStub/CryptlibWrapper/CryptlibWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include "hal/... | SecurityPkg/DeviceSecurity/OsStub/MemLibWrapper/MemLibWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include "hal/base.h"
/**
* Suspends the execut... | SecurityPkg/DeviceSecurity/OsStub/PlatformLibWrapper/PlatformLibWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <library/spdm_common_lib.h>
#include <library/spdm_return_status.h>
#include <library/spdm_crypt_lib.h>
#include <library/spdm_requester_lib.h>
#include <library/spdm_... | SecurityPkg/DeviceSecurity/SpdmLib/Include/Stub/SpdmLibStub.h | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
// In C23, bool is a built-in type
#if __STDC_VERSION__ < 202311L
typedef BOOLEAN bool;
#endif... | SecurityPkg/DeviceSecurity/SpdmLib/Include/hal/LibspdmStdBoolAlt.h | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
typedef UINTN size_t;
#define offsetof(type, member) OFFSET_OF(type,member) | SecurityPkg/DeviceSecurity/SpdmLib/Include/hal/LibspdmStdDefAlt.h | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
typedef UINT64 uint64_t;
typedef INT64 int64_t;
typedef UINT32 uint32_t;
typedef INT32 i... | SecurityPkg/DeviceSecurity/SpdmLib/Include/hal/LibspdmStdIntAlt.h | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define LIBSPDM_STDINT_ALT "hal/LibspdmStdIntAlt.h"
#define LIBSPDM_STDBOOL_ALT "hal/Libspd... | SecurityPkg/DeviceSecurity/SpdmLib/Include/hal/base.h | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/** @file
Provides services to print debug and assert messages to a debug output device.
The Debug libr... | SecurityPkg/DeviceSecurity/SpdmLib/Include/hal/library/debuglib.h | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/* Enables assertions and debug printing. When `LIBSPDM_DEBUG_ENABLE` is defined it overrides ... | SecurityPkg/DeviceSecurity/SpdmLib/Include/library/spdm_lib_config.h | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "SpdmSecurityLibInternal.h"
/**
Measure and log an EFI variable, and extend the measurement resu... | SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmAuthentication.c | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "SpdmSecurityLibInternal.h"
LIST_ENTRY mSpdmDeviceContextList = INITIALIZE_LIST_HEAD_VARIABLE (mS... | SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmConnectionInit.c | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "SpdmSecurityLibInternal.h"
/**
This function returns the SPDM device type for TCG SPDM event.
... | SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmMeasurement.c | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "SpdmSecurityLibInternal.h"
/**
Helper function to quickly determine whether device authenticati... | SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmSecurityLib.c | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi.h>
#include <hal/base.h>
#include <Stub/SpdmLibStub.h>
#include <industry_stand... | SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmSecurityLibInternal.h | null | null | null | null | null |
source | edk2 | /** @file
Enroll default PK, KEK, db, dbx.
Copyright (c) 2021, ARM Ltd. All rights reserved.<BR>
Copyright (c) 2021, Semihalf All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Guid/AuthenticatedVariableFormat.h> // gEfiCustomModeEnableGuid
#include <Guid/GlobalVariable.h> ... | SecurityPkg/EnrollFromDefaultKeysApp/EnrollFromDefaultKeysApp.c | null | null | null | null | null |
source | edk2 | /** @file
This driver verifies and reports OBB FVs.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "FvReportPei.h"
STATIC CONST HASH_ALG_INFO mHashAlgInfo[] = {
{ TPM_ALG_SHA256, SHA256_DIGEST_SIZE, Sha256Init, Sha256Update, Sha256Final... | SecurityPkg/FvReportPei/FvReportPei.c | null | null | null | null | null |
source | edk2 | /** @file
Definitions for OBB FVs verification.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiPei.h>
#include <IndustryStandard/Tpm20.h>
#include <Ppi/FirmwareVolumeInfoStoredHashFv.h>
#include <Ppi/FirmwareVolumeShadowP... | SecurityPkg/FvReportPei/FvReportPei.h | null | null | null | null | null |
source | edk2 | /** @file
This is service binding for Hash driver.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "Driver.h"
EFI_SERVICE_BINDING_PROTOCOL mHash2ServiceBindingProtocol = {
Hash2ServiceBindingCreateChild,
Hash2ServiceBindingDestr... | SecurityPkg/Hash2DxeCrypto/Driver.c | null | null | null | null | null |
source | edk2 | /** @file
This is definition for service binding for Hash driver.
Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi.h>
#include <Protocol/ServiceBinding.h>
#include <Protocol/Hash2.h>
#include <Library/BaseLib.h>
#... | SecurityPkg/Hash2DxeCrypto/Driver.h | null | null | null | null | null |
source | edk2 | /** @file
This module implements Hash2 Protocol.
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <Protocol/Hash2.h>
#include <Library/BaseLib.h>
#inclu... | SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.c | null | null | null | null | null |
source | edk2 | /** @file
HDD Password common header file.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// The payload length of HDD related ATA commands
//
#define HDD_PAYLOAD 512
#define ATA_SECURITY_SET_PASSWORD_CMD 0xF1
#define ATA_SE... | SecurityPkg/HddPassword/HddPasswordCommon.h | null | null | null | null | null |
source | edk2 | /** @file
HDD password driver which is used to support HDD security feature.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
Copyright (c) Microsoft Corporation.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "HddPasswordDxe.h"
#include <Library/VariablePolicyHelperLib.h>
EFI... | SecurityPkg/HddPassword/HddPasswordDxe.c | null | null | null | null | null |
source | edk2 | /** @file
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
Copyright (c) Microsoft Corporation.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi.h>
#include <IndustryStandard/Atapi.h>
#include <IndustryStandard/Pci.h>
#include <Protocol/AtaPassThru.h>
#include ... | SecurityPkg/HddPassword/HddPasswordDxe.h | null | null | null | null | null |
source | edk2 | /** @file
HddPassword HII data structure used by the driver.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Guid/HiiPlatformSetupFormset.h>
#define HDD_PASSWORD_CONFIG_GUID \
{ \
0x737cded7, 0x448b, 0x4801, { 0xb5... | SecurityPkg/HddPassword/HddPasswordHiiDataStruc.h | null | null | null | null | null |
source | edk2 | /** @file
HddPassword PEI module which is used to unlock HDD password for S3.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "HddPasswordPei.h"
EFI_GUID mHddPasswordDeviceInfoGuid = HDD_PASSWORD_DEVICE_INFO_GUID;
/**
Send unlock h... | SecurityPkg/HddPassword/HddPasswordPei.c | null | null | null | null | null |
source | edk2 | /** @file
HddPassword PEI module which is used to unlock HDD password for S3.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiPei.h>
#include <IndustryStandard/Atapi.h>
#include <Library/DebugLib.h>
#include <Library/B... | SecurityPkg/HddPassword/HddPasswordPei.h | null | null | null | null | null |
source | edk2 | /** @file
Provides a Secure Boot related data structure definitions.
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#pragma pack (push, 1)
/*
Data structure to provide certificates to setup authenticated secure
boot variables ('db', 'dbx', 'dbt', 'pk', ... | SecurityPkg/Include/UefiSecureBoot.h | null | null | null | null | null |
source | edk2 | /** @file
The variable data structures are related to EDKII-specific
implementation of UEFI authenticated variables.
AuthenticatedVariableFormat.h defines variable data headers
and variable storage region headers that has been moved to
VariableFormat.h.
Copyright (c) 2009 - 2016, Intel Corporation. All right... | SecurityPkg/Include/Guid/AuthenticatedVariableFormat.h | null | null | null | null | null |
source | edk2 | /** @file
Defines the HOB GUID used to pass a CC_EVENT from SEC to
a CC DXE Driver. A GUIDed HOB is generated for each measurement
made in the SEC Phase.
Copyright (c) 2021 - 2022, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// The Global ID of ... | SecurityPkg/Include/Guid/CcEventHob.h | null | null | null | null | null |
source | edk2 | /** @file
Defines the HOB GUID used to pass all PEI measured FV info to
DXE Driver.
Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <IndustryStandard/UefiTcgPlatform.h>
///
/// The Global ID of a GUIDed HOB used to pa... | SecurityPkg/Include/Guid/MeasuredFvHob.h | null | null | null | null | null |
source | edk2 | /** @file
Define the variable data structures used for TCG physical presence.
The TPM request from firmware or OS is saved to variable. And it is
cleared after it is processed in the next boot cycle. The TPM response
is saved to variable.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
S... | SecurityPkg/Include/Guid/PhysicalPresenceData.h | null | null | null | null | null |
source | edk2 | /** @file
GUID used as HII FormSet and HII Package list GUID in PwdCredentialProviderDxe driver.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// Used for save password credential and form browser.
// Also used as provider i... | SecurityPkg/Include/Guid/PwdCredentialProviderHii.h | null | null | null | null | null |
source | edk2 | /** @file
GUIDs used as HII FormSet and HII Package list GUID in SecureBootConfigDxe driver.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define SECUREBOOT_CONFIG_FORM_SET_GUID \
{ \
0x5daf50a5, 0xea81, 0x4de2, {0x8f, 0... | SecurityPkg/Include/Guid/SecureBootConfigHii.h | null | null | null | null | null |
source | edk2 | /** @file
GUID for SecurityPkg PCD Token Space.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define SECURITYPKG_TOKEN_SPACE_GUID \
{ \
0xd3fb176, 0x9569, 0x4d51, { 0xa3, 0xef, 0x7d, 0x61, 0xc6, 0x4f, 0xea, 0xba } \
}
... | SecurityPkg/Include/Guid/SecurityPkgTokenSpace.h | null | null | null | null | null |
source | edk2 | /** @file
This Tcg2 Acpi Communicate Buffer HOB is used to store the address
of a buffer reserved for Tcg2Acpi driver. The buffer will be used to
retrive information from standalone mm environment.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
... | SecurityPkg/Include/Guid/Tcg2AcpiCommunicateBuffer.h | null | null | null | null | null |
source | edk2 | /** @file
GUIDs used as HII FormSet and HII Package list GUID in Tcg2Config driver.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define TCG2_CONFIG_FORM_SET_GUID \
{ \
0x6339d487, 0x26ba, 0x424b, { 0x9a, 0x5d, 0x68, 0x7... | SecurityPkg/Include/Guid/Tcg2ConfigHii.h | null | null | null | null | null |
source | edk2 | /** @file
Define the variable data structures used for TCG2 physical presence.
The TPM2 request from firmware or OS is saved to variable. And it is
cleared after it is processed in the next boot cycle. The TPM2 response
is saved to variable.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved. <B... | SecurityPkg/Include/Guid/Tcg2PhysicalPresenceData.h | null | null | null | null | null |
source | edk2 | /** @file
GUIDs used as HII FormSet and HII Package list GUID in TcgConfig driver.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define TCG_CONFIG_FORM_SET_GUID \
{ \
0xb0f901e4, 0xc424, 0x45de, {0x90, 0x81, 0x95, 0xe2, ... | SecurityPkg/Include/Guid/TcgConfigHii.h | null | null | null | null | null |
source | edk2 | /** @file
Defines the HOB GUID used to pass a TCG_PCR_EVENT or TCG_PCR_EVENT2 from a TPM PEIM to
a TPM DXE Driver. A GUIDed HOB is generated for each measurement
made in the PEI Phase.
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragm... | SecurityPkg/Include/Guid/TcgEventHob.h | null | null | null | null | null |
source | edk2 | /** @file
Provides function interfaces to communicate with TPM 2.0 service through FF-A.
This header follows the TPM over FF-A specification:
https://developer.arm.com/documentation/den0138/latest/
Copyright (c), Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define... | SecurityPkg/Include/Guid/Tpm2ServiceFfa.h | null | null | null | null | null |
source | edk2 | /** @file
TPM instance guid, used for PcdTpmInstanceGuid.
Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define TPM_DEVICE_INTERFACE_NONE \
{ 0x00000000, 0x0000, 0x0000, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }
#defin... | SecurityPkg/Include/Guid/TpmInstance.h | null | null | null | null | null |
source | edk2 | /** @file
TPM NVS MM guid, used for exchanging information, including SWI value and NVS region
information, for patching TPM ACPI table.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#defi... | SecurityPkg/Include/Guid/TpmNvsMm.h | null | null | null | null | null |
source | edk2 | /** @file
This library abstract TPM2 hash calculation.
The platform can choose multiply hash, while caller just need invoke these API.
Then all hash value will be returned and/or extended.
Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#... | SecurityPkg/Include/Library/HashLib.h | null | null | null | null | null |
source | edk2 | /** @file
Copyright (c) 2025, ARM Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/**
Measurement for PeilessSec.
@retval EFI_SUCCESS Operation completed successfully.
@retval EFI_INVALID_PARAMETER Invalid firmware volume information.
@retval E... | SecurityPkg/Include/Library/PeilessSecMeasureLib.h | 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
**/
#pragma once
/**
Disable any applicable protection against variable 'PK'. The implementation
of this interface is platform specif... | SecurityPkg/Include/Library/PlatformPKProtectionLib.h | null | null | null | null | null |
source | edk2 | /** @file
Provides a secure platform-specific method to detect physically present user.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/**
This function provides a platform-specific method to detect whether the platform
is ... | SecurityPkg/Include/Library/PlatformSecureLib.h | null | null | null | null | null |
source | edk2 | /** @file
Provides a helper functions for creating variable authenticated
payloads, signature lists related to secure boot keys.
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.<... | SecurityPkg/Include/Library/SecureBootVariableLib.h | null | null | null | null | null |
source | edk2 | /** @file
Provides a functions to enroll keys based on default values.
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 All rights reserved.<BR>
SP... | SecurityPkg/Include/Library/SecureBootVariableProvisionLib.h | null | null | null | null | null |
source | edk2 | /** @file
EDKII Device Security library for SPDM device.
It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Protocol/DeviceSecurity.h>
#include <Protocol/DeviceSecurityPolicy.h>
/**
* Send a... | SecurityPkg/Include/Library/SpdmSecurityLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library is intended to be used by BDS modules.
This library will execute TPM2 request.
Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <IndustryStandard/Tpm20.h>
#include <IndustryStandard/TcgPhysicalPre... | SecurityPkg/Include/Library/Tcg2PhysicalPresenceLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library is to support TCG PC Client Platform Physical Presence Interface Specification
Family "2.0" part, >= 128 Vendor Specific PPI Operation.
The Vendor Specific PPI operation may change TPM state, BIOS TPM management
flags, and may need additional boot cycle.
Caution: This function may rec... | SecurityPkg/Include/Library/Tcg2PpVendorLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library is used by other modules to measure Firmware to TPM.
Copyright (c) 2020, Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi.h>
#pragma pack (1)
#define PLATFORM_FIRMWARE_BLOB_DESC "Fv(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX... | SecurityPkg/Include/Library/TcgEventLogRecordLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library is intended to be used by BDS modules.
This library will lock TPM after executing TPM request.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/**
Check and execute the pending TPM request and Lock TPM.... | SecurityPkg/Include/Library/TcgPhysicalPresenceLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library is to support TCG Physical Presence Interface (PPI) specification
>= 128 Vendor Specific PPI Operation.
The Vendor Specific PPI operation may change TPM state, BIOS TPM management
flags, and may need additional boot cycle.
Caution: This function may receive untrusted input.
Copyright... | SecurityPkg/Include/Library/TcgPpVendorLib.h | null | null | null | null | null |
source | edk2 | /** @file
Public API for the Tcg Core library to perform the lowest level TCG Data encoding.
(TCG Storage Architecture Core Specification, Version 2.01, Revision 1.00,
https://trustedcomputinggroup.org/tcg-storage-architecture-core-specification/)
Check http://trustedcomputinggroup.org for latest specificatio... | SecurityPkg/Include/Library/TcgStorageCoreLib.h | null | null | null | null | null |
source | edk2 | /** @file
Public API for Opal Core library.
(TCG Storage Architecture Core Specification, Version 2.01, Revision 1.00,
https://trustedcomputinggroup.org/tcg-storage-architecture-core-specification/
Storage Work Group Storage Security Subsystem Class: Pyrite, Specification Version 2.00, Revision 1.00,
https:... | SecurityPkg/Include/Library/TcgStorageOpalLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library is used by other modules to send TPM12 command.
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <IndustryStandard/Tpm12.h>
/**
Send Startup command to TPM1.2.
@param TpmSt Startup ... | SecurityPkg/Include/Library/Tpm12CommandLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library abstract how to access TPM12 hardware device.
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <IndustryStandard/Tpm12.h>
/**
This service enables the sending of commands to the TPM12.
@param... | SecurityPkg/Include/Library/Tpm12DeviceLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library is used by other modules to send TPM2 command.
Copyright (c) 2013 - 2024, Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <IndustryStandard/Tpm20.h>
/**
This command starts a hash or an Event sequence.
If hashAlg is an... | SecurityPkg/Include/Library/Tpm2CommandLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library abstract how to access TPM2 hardware device.
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi.h>
//
// Used in PcdActiveTpmInterfaceType to identify TPM interface type
//
typedef enum {
Tp... | SecurityPkg/Include/Library/Tpm2DeviceLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library is only intended to be used by TPM modules.
It provides basic TPM Interface Specification (TIS) and Command functions.
Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <IndustryStandard/Tpm12.h>
... | SecurityPkg/Include/Library/TpmCommLib.h | 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 Corporati... | SecurityPkg/Include/Library/TpmPlatformHierarchyLib.h | null | null | null | null | null |
source | edk2 | /** @file
CC Measurement PPI services.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Protocol/CcMeasurement.h>
typedef struct _EDKII_CC_PPI EDKII_CC_PPI;
//
// This bit is shall be set when HashData is the pre-hash digest.... | SecurityPkg/Include/Ppi/CcMeasurement.h | null | null | null | null | null |
source | edk2 | /** @file
This PPI means a FV does not need to be extended to PCR by TCG modules.
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define EFI_PEI_FIRMWARE_VOLUME_INFO_MEASUREMENT_EXCLUDED_PPI_GUID \
{ 0x6e056ff9, 0xc695, 0x4364,... | SecurityPkg/Include/Ppi/FirmwareVolumeInfoMeasurementExcluded.h | null | null | null | null | null |
source | edk2 | /** @file
PPI to describe all hash digests for a given FV
Copyright (c) 2017, Microsoft Corporation
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define EDKII_PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_PPI_GUID \
{ 0x3ce1e631, 0x7008, 0x4... | SecurityPkg/Include/Ppi/FirmwareVolumeInfoPrehashedFV.h | null | null | null | null | null |
source | edk2 | /** @file
PPI to describe stored hash digest for FVs.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Ppi/FirmwareVolumeInfoPrehashedFV.h>
// {7F5E4E31-81B1-47E5-9E21-1E4B5BC2F61D}
#define EDKII_PEI_FIRMWARE_VOLUME_INFO_STORED_... | SecurityPkg/Include/Ppi/FirmwareVolumeInfoStoredHashFv.h | null | null | null | null | null |
source | edk2 | /** @file
This file defines the lock physical Presence PPI. This PPI is
produced by a platform specific PEIM and consumed by the TPM
PEIM.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
///
/// Global ID for the PEI_LOCK_PHY... | SecurityPkg/Include/Ppi/LockPhysicalPresence.h | null | null | null | null | null |
source | edk2 | /** @file
TCG PPI services.
Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <IndustryStandard/UefiTcgPlatform.h>
typedef struct _EDKII_TCG_PPI EDKII_TCG_PPI;
//
// This bit is shall be set when HashData is the pre-hash digest... | SecurityPkg/Include/Ppi/Tcg.h | null | null | null | null | null |
source | edk2 | /** @file
Tag GUID that must be installed by the TPM PEIM after the TPM hardware is
initialized. PEIMs that must execute after TPM hardware initialization
may use this GUID in their dependency expressions.
Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clau... | SecurityPkg/Include/Ppi/TpmInitialized.h | null | null | null | null | null |
source | edk2 | /** @file
Platform Device Security Policy Protocol definition
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi.h>
#include <Protocol/DeviceSecurity.h>
typedef struct _EDKII_DEVICE_SECURITY_POLICY_PROTOCOL EDKII_DEVICE... | SecurityPkg/Include/Protocol/DeviceSecurityPolicy.h | null | null | null | null | null |
source | edk2 | /** @file
Implement authentication services for the authenticated variables.
Caution: This module requires additional review when modified.
This driver will have external input - variable data. It may be input in SMM mode.
This external input must be validated carefully to avoid security issue like
buffer ov... | SecurityPkg/Library/AuthVariableLib/AuthService.c | null | null | null | null | null |
source | edk2 | /** @file
The internal header file includes the common header files, defines
internal structure and functions used by AuthService module.
Caution: This module requires additional review when modified.
This driver will have external input - variable data. It may be input in SMM mode.
This external input must ... | SecurityPkg/Library/AuthVariableLib/AuthServiceInternal.h | null | null | null | null | null |
source | edk2 | /** @file
Implement authentication services for the authenticated variables.
Caution: This module requires additional review when modified.
This driver will have external input - variable data. It may be input in SMM mode.
This external input must be validated carefully to avoid security issue like
buffer ov... | SecurityPkg/Library/AuthVariableLib/AuthVariableLib.c | null | null | null | null | null |
source | edk2 | /** @file
Implement image authentication status check in UEFI2.3.1.
Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiDxe.h>
#include <Library/SecurityManagementLib.h>
/**
Check image authentication status returned from Section Ex... | SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c | null | null | null | null | null |
source | edk2 | /** @file
Implement image verification services for secure boot service
Caution: This file requires additional review when modified.
This library will have external input - PE/COFF image.
This external input must be validated carefully to avoid security issue like
buffer overflow, integer overflow.
DxeIma... | SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c | null | null | null | null | null |
source | edk2 | /** @file
The internal header file includes the common header files, defines
internal structure and functions used by ImageVerificationLib.
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Library/UefiDriverEntryPoint.... | SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.h | null | null | null | null | null |
source | edk2 | /** @file
Measure TCG required variable.
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiDxe.h>
#include <Guid/ImageAuthentication.h>
#include <IndustryStandard/UefiTcgPlatform.h>
#include <Library/UefiBootServicesTableLib.h>
#inc... | SecurityPkg/Library/DxeImageVerificationLib/Measurement.c | null | null | null | null | null |
source | edk2 | /** @file
Unit tests for the implementation of DxeImageVerificationLib.
Copyright (c) 2025, Yandex. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/GoogleTestLib.h>
#include <GoogleTest/Library/MockUefiLib.h>
#include <GoogleTest/Library/MockUefiRuntimeServicesTableLib.h>... | SecurityPkg/Library/DxeImageVerificationLib/GoogleTest/DxeImageVerificationLibGoogleTest.cpp | null | null | null | null | null |
source | edk2 | /** @file
Unit tests for the implementation of DxeImageVerificationLib.
Copyright (c) 2025, Yandex. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/**
Provide verification service for signed images, which include both signature validation
and platform policy control. For... | SecurityPkg/Library/DxeImageVerificationLib/GoogleTest/DxeImageVerificationLibGoogleTest.h | 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/DxeRsa2048Sha256GuidedSectionExtractLib/DxeRsa2048Sha256GuidedSectionExtractLib.c | null | null | null | null | null |
source | edk2 | /** @file
Execute pending TPM2 requests from OS or BIOS.
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 issue.
Tpm2ExecutePendingTpmRequest() will receive untrusted input and do... | SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.c | null | null | null | null | null |
source | edk2 | /** @file
Execute pending TPM requests from OS or BIOS and Lock TPM.
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 issue.
ExecutePendingTpmRequest() will receive untrusted inp... | SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.c | null | null | null | null | null |
source | edk2 | /** @file
The library instance provides security service of TPM2 measure boot and
Confidential Computing (CC) measure boot.
Caution: This file requires additional review when modified.
This library will have external input - PE/COFF image and GPT partition.
This external input must be validated carefully to ... | SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.c | null | null | null | null | null |
source | edk2 | /** @file
The library instance provides security service of TPM2 measure boot and
Confidential Computing (CC) measure boot.
Caution: This file requires additional review when modified.
This library will have external input - PE/COFF image and GPT partition.
This external input must be validated carefully to ... | SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLibSanitization.c | null | null | null | null | null |
source | edk2 | /** @file
This file includes the function prototypes for the sanitization functions.
These are those functions:
DxeTpm2MeasureBootLibImageRead() function will make sure the PE/COFF image content
read is within the image buffer.
Tcg2MeasureGptTable() function will receive untrusted GPT partition table, and ... | SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLibSanitization.h | null | null | null | null | null |
source | edk2 | /** @file
This file includes the unit test cases for the DxeTpm2MeasureBootLibSanitizationTest.c.
Copyright (c) Microsoft Corporation.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <Library/UefiLib.h>
#include <Library/DebugLib.h>
#include <Library/UnitTestLib.h>
#include <Prot... | SecurityPkg/Library/DxeTpm2MeasureBootLib/InternalUnitTest/DxeTpm2MeasureBootLibSanitizationTest.c | null | null | null | null | null |
source | edk2 | /** @file
The library instance provides security service of TPM measure boot.
Caution: This file requires additional review when modified.
This library will have external input - PE/COFF image and GPT partition.
This external input must be validated carefully to avoid security issue like
buffer overflow, int... | SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.c | null | null | null | null | null |
source | edk2 | /** @file
The library instance provides security service of TPM measure boot and
Confidential Computing (CC) measure boot.
Caution: This file requires additional review when modified.
This library will have external input - PE/COFF image and GPT partition.
This external input must be validated carefully to a... | SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLibSanitization.c | null | null | null | null | null |
source | edk2 | /** @file
This file includes the function prototypes for the sanitization functions.
These are those functions:
DxeTpmMeasureBootLibImageRead() function will make sure the PE/COFF image content
read is within the image buffer.
TcgMeasurePeImage() function will accept untrusted PE/COFF image and validate it... | SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLibSanitization.h | null | null | null | null | null |
source | edk2 | /** @file
This file includes the unit test cases for the DxeTpmMeasureBootLibSanitizationTest.c.
Copyright (c) Microsoft Corporation.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <Library/UefiLib.h>
#include <Library/DebugLib.h>
#include <Library/UnitTestLib.h>
#include <Proto... | SecurityPkg/Library/DxeTpmMeasureBootLib/InternalUnitTest/DxeTpmMeasureBootLibSanitizationTest.c | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.