nsacyber / HIRS

Trusted Computing based services supporting TPM provisioning and supply chain validation concepts. #nsacyber
Other
177 stars 57 forks source link

Move part of PciIds from AttestationCA back to Utils #796

Closed iadgovuser58 closed 1 month ago

iadgovuser58 commented 2 months ago

Closes #757

The class PciIds is in AttestationCA. However, a few functions in PciIds are needed to process SPDM event log structures defined in the PFP (specifically DEVICE_SECURITY_EVENT_DATA_PCI_CONTEXT), and the event log classes are in Utils. PciIds class cannot be accessed from Utils without creating a circular dependency. 1) renamed AttestationCA pciids to AcaPciIds 2) created a Utils PciIds and moved the DB object, the vendor id and device id translate functions in AcaPciIds into Utils PciIds 3) updated DeviceSecurityEventDataPciContext to use PciIds to report Vendor and Device IDs 4) update Utils PciIds to also translate classcode, and update DeviceSecurityEventDataPciContext to use this feature