TianoCore EDK2 master
Loading...
Searching...
No Matches
SpdmSecurityLib.c File Reference

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)
 

Detailed Description

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.

Function Documentation

◆ IsDeviceAuthBootEnabled()

BOOLEAN EFIAPI IsDeviceAuthBootEnabled ( VOID  )

Helper function to quickly determine whether device authentication boot is enabled.

Return values
TRUEdevice authentication boot is verifiably enabled.
FALSEdevice authentication boot is either disabled or an error prevented checking.

Definition at line 21 of file SpdmSecurityLib.c.

◆ SpdmDeviceAuthenticationAndMeasurement()

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.

Parameters
[in]SpdmDeviceInfoThe SPDM context for the device.
[in]SecurityPolicyThe security policy of this device.
[out]SecurityStateA pointer to security state if this device.
Return values
EFI_SUCCESSThe TCG SPDM device measurement context is returned.
EFI_UNSUPPORTEDThe TCG SPDM device measurement context is unsupported.

Definition at line 64 of file SpdmSecurityLib.c.

◆ SpdmGetIoProtocolViaSpdmContext()

VOID *EFIAPI SpdmGetIoProtocolViaSpdmContext ( IN VOID *  SpdmContext)

This function will get SpdmIoProtocol via Context.

Parameters
[in]SpdmContextThe SPDM context for the device.

return the pointer of Spdm Io protocol

Definition at line 143 of file SpdmSecurityLib.c.