@@ -27,7 +27,7 @@ InternalDumpData (
27
27
This function returns the SPDM device type for TCG SPDM event.
28
28
29
29
@param[in] SpdmContext The SPDM context for the device.
30
-
30
+
31
31
@return TCG SPDM device type
32
32
**/
33
33
UINT32
@@ -49,7 +49,7 @@ GetSpdmDeviceType (
49
49
This function returns the SPDM device measurement context size for TCG SPDM event.
50
50
51
51
@param[in] SpdmContext The SPDM context for the device.
52
-
52
+
53
53
@return TCG SPDM device measurement context size
54
54
**/
55
55
UINTN
@@ -73,7 +73,7 @@ GetDeviceMeasurementContextSize (
73
73
@param[in] SpdmContext The SPDM context for the device.
74
74
@param[in, OUT] DeviceContext The TCG SPDM PCI device measurement context.
75
75
@param[in] DeviceContextSize The size of TCG SPDM PCI device measurement context.
76
-
76
+
77
77
@retval EFI_SUCCESS The TCG SPDM PCI device measurement context is returned.
78
78
**/
79
79
EFI_STATUS
@@ -91,7 +91,7 @@ CreatePciDeviceMeasurementContext (
91
91
if (DeviceContextSize != sizeof (* PciContext )) {
92
92
return EFI_BUFFER_TOO_SMALL ;
93
93
}
94
-
94
+
95
95
PciIo = SpdmDriverContext -> DeviceIo ;
96
96
Status = PciIo -> Pci .Read (PciIo , EfiPciIoWidthUint8 , 0 , sizeof (PciData ), & PciData );
97
97
ASSERT_EFI_ERROR (Status );
@@ -123,7 +123,7 @@ CreatePciDeviceMeasurementContext (
123
123
@param[in] SpdmContext The SPDM context for the device.
124
124
@param[in, OUT] DeviceContext The TCG SPDM device measurement context.
125
125
@param[in] DeviceContextSize The size of TCG SPDM device measurement context.
126
-
126
+
127
127
@retval EFI_SUCCESS The TCG SPDM device measurement context is returned.
128
128
@retval EFI_UNSUPPORTED The TCG SPDM device measurement context is unsupported.
129
129
**/
@@ -145,7 +145,7 @@ CreateDeviceMeasurementContext (
145
145
146
146
/**
147
147
This function extend the PCI digest from the DvSec register.
148
-
148
+
149
149
@param[in] SpdmContext The SPDM context for the device.
150
150
@param[in] MeasurementRecordLength The length of the SPDM measurement record
151
151
@param[in] MeasurementRecord The SPDM measurement record
@@ -189,7 +189,7 @@ ExtendMeasurement (
189
189
SpdmMeasurementBlockDmtfHeader = (VOID * )(SpdmMeasurementBlockCommonHeader + 1 );
190
190
Digest = (SpdmMeasurementBlockDmtfHeader + 1 );
191
191
DigestSize = MeasurementRecordLength - sizeof (SPDM_MEASUREMENT_BLOCK_DMTF );
192
-
192
+
193
193
DEBUG ((DEBUG_INFO , "SpdmMeasurementBlockCommonHeader\n" ));
194
194
DEBUG ((DEBUG_INFO , " Index - 0x%02x\n" , SpdmMeasurementBlockCommonHeader -> index ));
195
195
DEBUG ((DEBUG_INFO , " MeasurementSpecification - 0x%02x\n" , SpdmMeasurementBlockCommonHeader -> measurement_specification ));
@@ -289,7 +289,7 @@ ExtendMeasurement (
289
289
290
290
/**
291
291
This function executes SPDM measurement and extend to TPM.
292
-
292
+
293
293
@param[in] SpdmContext The SPDM context for the device.
294
294
@param[out] DeviceSecurityState The Device Security state associated with the device.
295
295
**/
@@ -325,7 +325,7 @@ SpdmSendReceiveGetMeasurement (
325
325
return Status ;
326
326
}
327
327
DEBUG ((DEBUG_INFO , "NumberOfBlocks - 0x%x\n" , NumberOfBlocks ));
328
-
328
+
329
329
for (Index = 1 ; Index <= NumberOfBlocks ; Index ++ ) {
330
330
DEBUG ((DEBUG_INFO , "Index - 0x%x\n" , Index ));
331
331
//
@@ -347,7 +347,7 @@ SpdmSendReceiveGetMeasurement (
347
347
return Status ;
348
348
}
349
349
350
- DEBUG ((DEBUG_INFO , "ExtendMeasurement...\n" , ExtendMeasurement ));
350
+ DEBUG ((DEBUG_INFO , "ExtendMeasurement...\n" ));
351
351
Status = ExtendMeasurement (SpdmDriverContext , MeasurementRecordLength , MeasurementRecord );
352
352
if (Status != EFI_SUCCESS ) {
353
353
return Status ;
@@ -359,7 +359,7 @@ SpdmSendReceiveGetMeasurement (
359
359
360
360
/**
361
361
This function executes SPDM measurement and extend to TPM.
362
-
362
+
363
363
@param[in] SpdmContext The SPDM context for the device.
364
364
@param[out] DeviceSecurityState The Device Security state associated with the device.
365
365
**/
@@ -384,7 +384,7 @@ DoMeasurementViaSpdm (
384
384
385
385
/**
386
386
The device driver uses this service to measure an SPDM device.
387
-
387
+
388
388
@param[in] SpdmContext The SPDM context for the device.
389
389
@param[out] DeviceSecurityState The Device Security state associated with the device.
390
390
**/
0 commit comments