TianoCore EDK2 master
|
#include "SpdmSecurityLibInternal.h"
Go to the source code of this file.
Macros | |
#define | CONNECTUIN_FAILURE_GET_SPDM_UID_FAILED "Fail to get Spdm Uid" |
#define | CONNECTUIN_FAILURE_STGNATURE_DB_FUL_STRING "The Signature database devdb is full" |
Functions | |
VOID | RecordSpdmDeviceContextInList (IN SPDM_DEVICE_CONTEXT *SpdmDeviceContext) |
VOID *EFIAPI | GetSpdmIoProtocolViaSpdmContext (IN VOID *SpdmContext) |
EFI_STATUS | GetSpdmUid (UINT64 *SpdmUid) |
EFI_STATUS | RecordConnectionFailureStatus (IN CHAR8 *FailureString, IN UINT32 StringLen) |
SPDM_DEVICE_CONTEXT *EFIAPI | CreateSpdmDeviceContext (IN EDKII_SPDM_DEVICE_INFO *SpdmDeviceInfo, OUT EDKII_DEVICE_SECURITY_STATE *SecurityState) |
VOID EFIAPI | DestroySpdmDeviceContext (IN SPDM_DEVICE_CONTEXT *SpdmDeviceContext) |
Variables | |
LIST_ENTRY | mSpdmDeviceContextList = INITIALIZE_LIST_HEAD_VARIABLE (mSpdmDeviceContextList) |
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 SpdmConnectionInit.c.
#define CONNECTUIN_FAILURE_GET_SPDM_UID_FAILED "Fail to get Spdm Uid" |
Definition at line 14 of file SpdmConnectionInit.c.
#define CONNECTUIN_FAILURE_STGNATURE_DB_FUL_STRING "The Signature database devdb is full" |
Definition at line 15 of file SpdmConnectionInit.c.
SPDM_DEVICE_CONTEXT *EFIAPI CreateSpdmDeviceContext | ( | IN EDKII_SPDM_DEVICE_INFO * | SpdmDeviceInfo, |
OUT EDKII_DEVICE_SECURITY_STATE * | SecurityState | ||
) |
This function creates the spdm device context and init connection to the responder with the device info.
[in] | SpdmDeviceInfo | A pointer to device info. |
[out] | SecurityState | A pointer to the security state of the requester. |
Definition at line 167 of file SpdmConnectionInit.c.
VOID EFIAPI DestroySpdmDeviceContext | ( | IN SPDM_DEVICE_CONTEXT * | SpdmDeviceContext | ) |
This function destories the spdm device context.
[in] | SpdmDeviceContext | A pointer to device info. |
Definition at line 460 of file SpdmConnectionInit.c.
VOID *EFIAPI GetSpdmIoProtocolViaSpdmContext | ( | IN VOID * | SpdmContext | ) |
get Spdm Io protocol from Context list via spdm context.
[in] | SpdmContext | The SPDM context of the requester. |
return a pointer to the Spdm Io protocol.
Definition at line 55 of file SpdmConnectionInit.c.
EFI_STATUS GetSpdmUid | ( | UINT64 * | SpdmUid | ) |
creates and returns Spdm Uid from the volatile variable.
[in] | SpdmUid | A pointer to Spdm Uid. |
EFI_SUCCESS | Operation completed successfully. |
EFI_OUT_OF_RESOURCES | Out of memory. |
EFI_DEVICE_ERROR | The operation was unsuccessful. |
Definition at line 90 of file SpdmConnectionInit.c.
EFI_STATUS RecordConnectionFailureStatus | ( | IN CHAR8 * | FailureString, |
IN UINT32 | StringLen | ||
) |
Record and log the connection failure string to PCR1.
[in] | FailureString | The failure string. |
[in] | StringLen | The length of the string. |
EFI_SUCCESS | Operation completed successfully. |
EFI_OUT_OF_RESOURCES | Out of memory. |
EFI_DEVICE_ERROR | The operation was unsuccessful. |
Definition at line 136 of file SpdmConnectionInit.c.
VOID RecordSpdmDeviceContextInList | ( | IN SPDM_DEVICE_CONTEXT * | SpdmDeviceContext | ) |
record Spdm Io protocol into the context list.
[in] | SpdmDeviceContext | The SPDM context of the device. |
Definition at line 24 of file SpdmConnectionInit.c.
LIST_ENTRY mSpdmDeviceContextList = INITIALIZE_LIST_HEAD_VARIABLE (mSpdmDeviceContextList) |
Definition at line 12 of file SpdmConnectionInit.c.