TianoCore EDK2 master
Loading...
Searching...
No Matches
SpdmLibStub.h File Reference
#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_responder_lib.h>
#include <library/spdm_transport_pcidoe_lib.h>

Go to the source code of this file.

Data Structures

struct  SPDM_MESSAGE_HEADER
 
struct  SPDM_CERT_CHAIN
 
struct  SPDM_MEASUREMENT_BLOCK_COMMON_HEADER
 
struct  SPDM_MEASUREMENT_BLOCK_DMTF_HEADER
 
struct  SPDM_MEASUREMENT_BLOCK_DMTF
 
struct  PCI_DOE_DATA_OBJECT_HEADER
 

Macros

#define SPDM_DATA_PARAMETER   libspdm_data_parameter_t
 
#define SpdmSetData   libspdm_set_data
 
#define SpdmGetData   libspdm_get_data
 
#define SpdmInitContext   libspdm_init_context
 
#define SpdmGetContextSize   libspdm_get_context_size
 
#define SpdmRegisterDeviceIoFunc   libspdm_register_device_io_func
 
#define SpdmRegisterTransportLayerFunc   libspdm_register_transport_layer_func
 
#define SpdmGetSizeofRequiredScratchBuffer   libspdm_get_sizeof_required_scratch_buffer
 
#define SpdmRegisterDeviceBufferFunc   libspdm_register_device_buffer_func
 
#define SpdmSetScratchBuffer   libspdm_set_scratch_buffer
 
#define SpdmGetHashSize   libspdm_get_hash_size
 
#define SpdmHashAll   libspdm_hash_all
 
#define SpdmGetMeasurementHashSize   libspdm_get_measurement_hash_size
 
#define SpdmMeasurementHashAll   libspdm_measurement_hash_all
 
#define SpdmHmacAll   libspdm_hmac_all
 
#define SpdmHkdfExpand   libspdm_hkdf_expand
 
#define SpdmAsymFree   libspdm_asym_free
 
#define SpdmAsymGetPrivateKeyFromPem   libspdm_asym_get_private_key_from_pem
 
#define SpdmAsymSign   libspdm_asym_sign
 
#define SpdmAsymSignHash   libspdm_asym_sign_hash
 
#define SpdmInitConnection   libspdm_init_connection
 
#define SpdmGetDigest   libspdm_get_digest
 
#define SpdmGetCertificate   libspdm_get_certificate
 
#define SpdmGetCertificateEx   libspdm_get_certificate_ex
 
#define SpdmChallenge   libspdm_challenge
 
#define SpdmChallengeEx   libspdm_challenge_ex
 
#define SpdmGetMeasurement   libspdm_get_measurement
 
#define SpdmGetMeasurementEx   libspdm_get_measurement_ex
 
#define SpdmStartSession   libspdm_start_session
 
#define SpdmStopSession   libspdm_stop_session
 
#define SpdmSendReceiveData   libspdm_send_receive_data
 
#define SpdmRegisterGetResponseFunc   libspdm_register_get_response_func
 
#define SpdmProcessRequest   libspdm_process_request
 
#define SpdmBuildResponse   libspdm_build_response
 
#define SpdmGenerateErrorResponse   libspdm_generate_error_response
 
#define SpdmTransportPciDoeEncodeMessage   libspdm_transport_pci_doe_encode_message
 
#define SpdmTransportPciDoeDecodeMessage   libspdm_transport_pci_doe_decode_message
 
#define SpdmMeasurementCollectionFunc   libspdm_measurement_collection
 
#define SpdmRequesterDataSignFunc   libspdm_requester_data_sign
 
#define SpdmResponderDataSignFunc   libspdm_responder_data_sign
 
#define SpdmGenerateMeasurementSummaryHash   libspdm_generate_measurement_summary_hash
 
#define SpdmPskMasterSecretHkdfExpandFunc   libspdm_psk_master_secret_hkdf_expand
 
#define SpdmPskHandshakeSecretHkdfExpandFunc   libspdm_psk_handshake_secret_hkdf_expand
 
#define SpdmMeasurementOpaqueData   libspdm_measurement_opaque_data
 
#define SpdmChallengeOpaqueData   libspdm_challenge_opaque_data
 

Typedefs

typedef UINT32 SPDM_RETURN
 
typedef UINT16 SPDM_VERSION_NUMBER
 

Enumerations

enum  SPDM_DATA_TYPE {
  SpdmDataSpdmVersion , SpdmDataSecuredMessageVersion , SpdmDataCapabilityFlags , SpdmDataCapabilityCTExponent ,
  SpdmDataCapabilityRttUs , SpdmDataCapabilityDataTransferSize , SpdmDataCapabilityMaxSpdmMsgSize , SpdmDataCapabilitySenderDataTransferSize ,
  SpdmDataMeasurementSpec , SpdmDataMeasurementHashAlgo , SpdmDataBaseAsymAlgo , SpdmDataBaseHashAlgo ,
  SpdmDataDHENameGroup , SpdmDataAEADCipherSuite , SpdmDataReqBaseAsymAlg , SpdmDataKeySchedule ,
  SpdmDataOtherParamsSupport , SpdmDataMelSpec , SpdmDataConnectionState , SpdmDataResponseState ,
  SpdmDataLocalPublicCertChain , SpdmDataPeerPublicRootCert , SpdmDataPeerPublicKey , SpdmDataLocalPublicKey ,
  SpdmDataLocalSupportedSlotMask , SpdmDataLocalKeyPairId , SpdmDataLocalCertInfo , SpdmDataLocalKeyUsageBitMask ,
  SpdmDataBasicMutAuthRequested , SpdmDataMutAuthRequested , SpdmDataHeartBeatPeriod , SpdmDataPeerUsedCertChainBuffer ,
  SpdmDataPeerSlotMask , SpdmDataPeerProvisionedSlotMask = SpdmDataPeerSlotMask , SpdmDataPeerSupportedSlotMask , SpdmDataPeerTotalDigestBuffer ,
  SpdmDataPeerKeyPairId , SpdmDataPeerCertInfo , SpdmDataPeerKeyUsageBitMask , SpdmDataPskHint ,
  SpdmDataSessionUsePsk , SpdmDataSessionMutAuthRequested , SpdmDataSessionEndSessionAttributes , SpdmDataSessionPolicy ,
  SpdmDataAppContextData , SpdmDataHandleErrorReturnPolicy , SpdmDataVcaCache , SpdmDataIsRequester ,
  SpdmDataRequestRetryTimes , SpdmDataRequestRetryDelayTime , SpdmDataMaxDheSessionConut , SpdmDataMaxPskSessionConut ,
  SpdmDataSessionSequenceNumberRspDir , SpdmDataSessionSequenceNumberReqDir , SpdmDataMaxSessionSequenceNumber , SpdmDataSpdmVersion1011VerifySigatureEndian ,
  SpdmDataSequenceNumberEndian , SpdmDataSessionSequenceNumberEndian , SpdmDataMultiKeyConnReq , SpdmDataMultiKeyConnRsp ,
  SpdmDataMax
}
 
enum  SPDM_DATA_LOCATION { SpdmDataLocationLocal , SpdmDataLocationConnection , SpdmDataLocationSession , SpdmDataLocationMax }
 
enum  SPDM_CONNECTION_STATE {
  SpdmConnectionStateNotStarted , SpdmConnectionStateAfterVersion , SpdmConnectionStateAfterCapabilities , SpdmConnectionStateNegotiated ,
  SpdmConnectionStateAfterDigests , SpdmConnectionStateAfterCertificate , SpdmConnectionStateAuthenticated , SpdmConnectionStateMax
}
 
enum  SPDM_RESPONSE_STATE {
  SpdmResponseStateNormal , SpdmResponseStateBusy , SpdmResponseStateNeedResync , SpdmResponseStateProcessingEncap ,
  SpdmResponseStateMax
}
 

Detailed Description

Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SpdmLibStub.h.

Macro Definition Documentation

◆ SPDM_DATA_PARAMETER

#define SPDM_DATA_PARAMETER   libspdm_data_parameter_t

Definition at line 85 of file SpdmLibStub.h.

◆ SpdmAsymFree

#define SpdmAsymFree   libspdm_asym_free

Definition at line 315 of file SpdmLibStub.h.

◆ SpdmAsymGetPrivateKeyFromPem

#define SpdmAsymGetPrivateKeyFromPem   libspdm_asym_get_private_key_from_pem

Definition at line 316 of file SpdmLibStub.h.

◆ SpdmAsymSign

#define SpdmAsymSign   libspdm_asym_sign

Definition at line 317 of file SpdmLibStub.h.

◆ SpdmAsymSignHash

#define SpdmAsymSignHash   libspdm_asym_sign_hash

Definition at line 318 of file SpdmLibStub.h.

◆ SpdmBuildResponse

#define SpdmBuildResponse   libspdm_build_response

Definition at line 333 of file SpdmLibStub.h.

◆ SpdmChallenge

#define SpdmChallenge   libspdm_challenge

Definition at line 324 of file SpdmLibStub.h.

◆ SpdmChallengeEx

#define SpdmChallengeEx   libspdm_challenge_ex

Definition at line 325 of file SpdmLibStub.h.

◆ SpdmChallengeOpaqueData

#define SpdmChallengeOpaqueData   libspdm_challenge_opaque_data

Definition at line 345 of file SpdmLibStub.h.

◆ SpdmGenerateErrorResponse

#define SpdmGenerateErrorResponse   libspdm_generate_error_response

Definition at line 334 of file SpdmLibStub.h.

◆ SpdmGenerateMeasurementSummaryHash

#define SpdmGenerateMeasurementSummaryHash   libspdm_generate_measurement_summary_hash

Definition at line 341 of file SpdmLibStub.h.

◆ SpdmGetCertificate

#define SpdmGetCertificate   libspdm_get_certificate

Definition at line 322 of file SpdmLibStub.h.

◆ SpdmGetCertificateEx

#define SpdmGetCertificateEx   libspdm_get_certificate_ex

Definition at line 323 of file SpdmLibStub.h.

◆ SpdmGetContextSize

#define SpdmGetContextSize   libspdm_get_context_size

Definition at line 302 of file SpdmLibStub.h.

◆ SpdmGetData

#define SpdmGetData   libspdm_get_data

Definition at line 300 of file SpdmLibStub.h.

◆ SpdmGetDigest

#define SpdmGetDigest   libspdm_get_digest

Definition at line 321 of file SpdmLibStub.h.

◆ SpdmGetHashSize

#define SpdmGetHashSize   libspdm_get_hash_size

Definition at line 309 of file SpdmLibStub.h.

◆ SpdmGetMeasurement

#define SpdmGetMeasurement   libspdm_get_measurement

Definition at line 326 of file SpdmLibStub.h.

◆ SpdmGetMeasurementEx

#define SpdmGetMeasurementEx   libspdm_get_measurement_ex

Definition at line 327 of file SpdmLibStub.h.

◆ SpdmGetMeasurementHashSize

#define SpdmGetMeasurementHashSize   libspdm_get_measurement_hash_size

Definition at line 311 of file SpdmLibStub.h.

◆ SpdmGetSizeofRequiredScratchBuffer

#define SpdmGetSizeofRequiredScratchBuffer   libspdm_get_sizeof_required_scratch_buffer

Definition at line 305 of file SpdmLibStub.h.

◆ SpdmHashAll

#define SpdmHashAll   libspdm_hash_all

Definition at line 310 of file SpdmLibStub.h.

◆ SpdmHkdfExpand

#define SpdmHkdfExpand   libspdm_hkdf_expand

Definition at line 314 of file SpdmLibStub.h.

◆ SpdmHmacAll

#define SpdmHmacAll   libspdm_hmac_all

Definition at line 313 of file SpdmLibStub.h.

◆ SpdmInitConnection

#define SpdmInitConnection   libspdm_init_connection

Definition at line 320 of file SpdmLibStub.h.

◆ SpdmInitContext

#define SpdmInitContext   libspdm_init_context

Definition at line 301 of file SpdmLibStub.h.

◆ SpdmMeasurementCollectionFunc

#define SpdmMeasurementCollectionFunc   libspdm_measurement_collection

Definition at line 338 of file SpdmLibStub.h.

◆ SpdmMeasurementHashAll

#define SpdmMeasurementHashAll   libspdm_measurement_hash_all

Definition at line 312 of file SpdmLibStub.h.

◆ SpdmMeasurementOpaqueData

#define SpdmMeasurementOpaqueData   libspdm_measurement_opaque_data

Definition at line 344 of file SpdmLibStub.h.

◆ SpdmProcessRequest

#define SpdmProcessRequest   libspdm_process_request

Definition at line 332 of file SpdmLibStub.h.

◆ SpdmPskHandshakeSecretHkdfExpandFunc

#define SpdmPskHandshakeSecretHkdfExpandFunc   libspdm_psk_handshake_secret_hkdf_expand

Definition at line 343 of file SpdmLibStub.h.

◆ SpdmPskMasterSecretHkdfExpandFunc

#define SpdmPskMasterSecretHkdfExpandFunc   libspdm_psk_master_secret_hkdf_expand

Definition at line 342 of file SpdmLibStub.h.

◆ SpdmRegisterDeviceBufferFunc

#define SpdmRegisterDeviceBufferFunc   libspdm_register_device_buffer_func

Definition at line 306 of file SpdmLibStub.h.

◆ SpdmRegisterDeviceIoFunc

#define SpdmRegisterDeviceIoFunc   libspdm_register_device_io_func

Definition at line 303 of file SpdmLibStub.h.

◆ SpdmRegisterGetResponseFunc

#define SpdmRegisterGetResponseFunc   libspdm_register_get_response_func

Definition at line 331 of file SpdmLibStub.h.

◆ SpdmRegisterTransportLayerFunc

#define SpdmRegisterTransportLayerFunc   libspdm_register_transport_layer_func

Definition at line 304 of file SpdmLibStub.h.

◆ SpdmRequesterDataSignFunc

#define SpdmRequesterDataSignFunc   libspdm_requester_data_sign

Definition at line 339 of file SpdmLibStub.h.

◆ SpdmResponderDataSignFunc

#define SpdmResponderDataSignFunc   libspdm_responder_data_sign

Definition at line 340 of file SpdmLibStub.h.

◆ SpdmSendReceiveData

#define SpdmSendReceiveData   libspdm_send_receive_data

Definition at line 330 of file SpdmLibStub.h.

◆ SpdmSetData

#define SpdmSetData   libspdm_set_data

Definition at line 299 of file SpdmLibStub.h.

◆ SpdmSetScratchBuffer

#define SpdmSetScratchBuffer   libspdm_set_scratch_buffer

Definition at line 307 of file SpdmLibStub.h.

◆ SpdmStartSession

#define SpdmStartSession   libspdm_start_session

Definition at line 328 of file SpdmLibStub.h.

◆ SpdmStopSession

#define SpdmStopSession   libspdm_stop_session

Definition at line 329 of file SpdmLibStub.h.

◆ SpdmTransportPciDoeDecodeMessage

#define SpdmTransportPciDoeDecodeMessage   libspdm_transport_pci_doe_decode_message

Definition at line 336 of file SpdmLibStub.h.

◆ SpdmTransportPciDoeEncodeMessage

#define SpdmTransportPciDoeEncodeMessage   libspdm_transport_pci_doe_encode_message

Definition at line 335 of file SpdmLibStub.h.

Typedef Documentation

◆ SPDM_RETURN

typedef UINT32 SPDM_RETURN

Definition at line 26 of file SpdmLibStub.h.

◆ SPDM_VERSION_NUMBER

typedef UINT16 SPDM_VERSION_NUMBER

Definition at line 42 of file SpdmLibStub.h.

Enumeration Type Documentation

◆ SPDM_CONNECTION_STATE

enum SPDM_CONNECTION_STATE

Definition at line 218 of file SpdmLibStub.h.

◆ SPDM_DATA_LOCATION

enum SPDM_DATA_LOCATION

Definition at line 211 of file SpdmLibStub.h.

◆ SPDM_DATA_TYPE

enum SPDM_DATA_TYPE

Definition at line 87 of file SpdmLibStub.h.

◆ SPDM_RESPONSE_STATE

enum SPDM_RESPONSE_STATE

Definition at line 253 of file SpdmLibStub.h.