10#ifndef SPDM_SECURITY_LIB_H_
11#define SPDM_SECURITY_LIB_H_
95 IN OUT VOID **Message,
131 IN VOID *SpdmContext,
133 IN BOOLEAN IsAppMessage,
134 IN BOOLEAN IsRequester,
136 IN OUT VOID *Message,
138 IN VOID **TransportMessage
174 IN VOID *SpdmContext,
175 IN OUT UINT32 **SessionId,
176 IN BOOLEAN *IsAppMessage,
177 IN BOOLEAN IsRequester,
179 IN OUT VOID *TransportMessage,
181 IN OUT VOID **Message
224 IN VOID *SpdmContext,
225 IN OUT VOID **MsgBufPtr
239 IN VOID *SpdmContext,
283 IN VOID *SpdmContext,
284 IN OUT VOID **MsgBufPtr
298 IN VOID *SpdmContext,
314 BOOLEAN IsEmbeddedDevice;
394 UINT32 MaxSpdmMsgSize;
395 UINT32 TransportHeaderSize;
396 UINT32 TransportTailSize;
397 UINT32 SenderBufferSize;
398 UINT32 ReceiverBufferSize;
SPDM_RETURN(* SPDM_DEVICE_ACQUIRE_SENDER_BUFFER_FUNC)(IN VOID *SpdmContext, IN OUT VOID **MsgBufPtr)
SPDM_RETURN(* SPDM_DEVICE_RECEIVE_MESSAGE_FUNC)(IN VOID *SpdmContext, IN OUT UINTN *MessageSize, IN OUT VOID **Message, IN UINT64 Timeout)
VOID *EFIAPI SpdmGetIoProtocolViaSpdmContext(IN VOID *SpdmContext)
SPDM_RETURN(* SPDM_DEVICE_ACQUIRE_RECEIVER_BUFFER_FUNC)(IN VOID *SpdmContext, IN OUT VOID **MsgBufPtr)
SPDM_RETURN(* SPDM_TRANSPORT_DECODE_MESSAGE_FUNC)(IN VOID *SpdmContext, IN OUT UINT32 **SessionId, IN BOOLEAN *IsAppMessage, IN BOOLEAN IsRequester, IN UINTN TransportMessageSize, IN OUT VOID *TransportMessage, IN OUT UINTN *MessageSize, IN OUT VOID **Message)
SPDM_RETURN(* SPDM_TRANSPORT_ENCODE_MESSAGE_FUNC)(IN VOID *SpdmContext, IN OUT CONST UINT32 *SessionId, IN BOOLEAN IsAppMessage, IN BOOLEAN IsRequester, IN UINTN MessageSize, IN OUT VOID *Message, IN OUT UINTN *TransportMessageSize, IN VOID **TransportMessage)
VOID(* SPDM_DEVICE_RELEASE_RECEIVER_BUFFER_FUNC)(IN VOID *SpdmContext, IN CONST VOID *MsgBufPtr)
RETURN_STATUS EFIAPI SpdmDeviceAuthenticationAndMeasurement(IN EDKII_SPDM_DEVICE_INFO *SpdmDeviceInfo, IN EDKII_DEVICE_SECURITY_POLICY *SecurityPolicy, OUT EDKII_DEVICE_SECURITY_STATE *SecurityState)
SPDM_RETURN(* SPDM_DEVICE_SEND_MESSAGE_FUNC)(IN VOID *SpdmContext, IN UINTN MessageSize, IN OUT CONST VOID *Message, IN UINT64 Timeout)
BOOLEAN EFIAPI IsDeviceAuthBootEnabled(VOID)
VOID(* SPDM_DEVICE_RELEASE_SENDER_BUFFER_FUNC)(IN VOID *SpdmContext, IN CONST VOID *MsgBufPtr)