TianoCore EDK2 master
|
#include "SpdmSecurityLibInternal.h"
Go to the source code of this file.
Functions | |
BOOLEAN EFIAPI | IsDeviceAuthBootEnabled (VOID) |
EFI_STATUS EFIAPI | SpdmDeviceAuthenticationAndMeasurement (IN EDKII_SPDM_DEVICE_INFO *SpdmDeviceInfo, IN EDKII_DEVICE_SECURITY_POLICY *SecurityPolicy, OUT EDKII_DEVICE_SECURITY_STATE *SecurityState) |
VOID *EFIAPI | SpdmGetIoProtocolViaSpdmContext (IN VOID *SpdmContext) |
EDKII Device Security library for SPDM device. It follows the SPDM Specification.
Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SpdmSecurityLib.c.
BOOLEAN EFIAPI IsDeviceAuthBootEnabled | ( | VOID | ) |
Helper function to quickly determine whether device authentication boot is enabled.
TRUE | device authentication boot is verifiably enabled. |
FALSE | device authentication boot is either disabled or an error prevented checking. |
Definition at line 21 of file SpdmSecurityLib.c.
EFI_STATUS EFIAPI SpdmDeviceAuthenticationAndMeasurement | ( | IN EDKII_SPDM_DEVICE_INFO * | SpdmDeviceInfo, |
IN EDKII_DEVICE_SECURITY_POLICY * | SecurityPolicy, | ||
OUT EDKII_DEVICE_SECURITY_STATE * | SecurityState | ||
) |
The device driver uses this service to authenticate and measure an SPDM device.
[in] | SpdmDeviceInfo | The SPDM context for the device. |
[in] | SecurityPolicy | The security policy of this device. |
[out] | SecurityState | A pointer to security state if this device. |
EFI_SUCCESS | The TCG SPDM device measurement context is returned. |
EFI_UNSUPPORTED | The TCG SPDM device measurement context is unsupported. |
Definition at line 64 of file SpdmSecurityLib.c.
VOID *EFIAPI SpdmGetIoProtocolViaSpdmContext | ( | IN VOID * | SpdmContext | ) |
This function will get SpdmIoProtocol via Context.
[in] | SpdmContext | The SPDM context for the device. |
return the pointer of Spdm Io protocol
Definition at line 143 of file SpdmSecurityLib.c.