mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-28 00:38:56 +00:00
changing string and other comments
This commit is contained in:
parent
9151d03a18
commit
e89b43f50b
@ -49,7 +49,7 @@ public abstract class DeviceSecurityEventDataDeviceContext {
|
||||
*
|
||||
* @return a description of this structure..
|
||||
*/
|
||||
public String deviceContextCommonInfoToString() {
|
||||
public String toString() {
|
||||
String dSEDdeviceContextCommonInfo = "";
|
||||
|
||||
dSEDdeviceContextCommonInfo += "\n DeviceSecurityEventData Device Info:";
|
||||
|
@ -92,7 +92,7 @@ public class DeviceSecurityEventDataHeader extends DeviceSecurityEventHeader {
|
||||
public String toString() {
|
||||
String dsedHeaderInfo = "";
|
||||
|
||||
dsedHeaderInfo += headerCommonInfoToString();
|
||||
dsedHeaderInfo += super.toString();
|
||||
String spdmHashAlgoStr = SpdmHa.tcgAlgIdToString(spdmHashAlgo);
|
||||
dsedHeaderInfo += "\n SPDM Hash Algorithm = " + spdmHashAlgoStr;
|
||||
dsedHeaderInfo += "\n SPDM Measurement Block:";
|
||||
|
@ -1,9 +1,22 @@
|
||||
package hirs.utils.tpm.eventlog.events;
|
||||
|
||||
import hirs.utils.tpm.eventlog.spdm.SpdmHa;
|
||||
|
||||
// Placeholder for Header2 data structure.
|
||||
public class DeviceSecurityEventDataHeader2 extends DeviceSecurityEventHeader {
|
||||
|
||||
public DeviceSecurityEventDataHeader2(final byte[] dSEDbytes) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a human readable description of the data within this structure.
|
||||
*
|
||||
* @return a description of this structure.
|
||||
*/
|
||||
public String toString() {
|
||||
String dsedHeader2Info = "";
|
||||
|
||||
return dsedHeader2Info;
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ public class DeviceSecurityEventDataPciContext extends DeviceSecurityEventDataDe
|
||||
public String toString() {
|
||||
String dSEDpciContextInfo = "";
|
||||
|
||||
dSEDpciContextInfo += deviceContextCommonInfoToString();
|
||||
dSEDpciContextInfo += super.toString();
|
||||
dSEDpciContextInfo += "\n Device Type = PCI";
|
||||
dSEDpciContextInfo += "\n VendorID = 0x" + vendorId;
|
||||
dSEDpciContextInfo += "\n DeviceID = 0x" + deviceId;
|
||||
|
@ -203,7 +203,7 @@ public abstract class DeviceSecurityEventHeader {
|
||||
*
|
||||
* @return a description of this structure.
|
||||
*/
|
||||
public String headerCommonInfoToString() {
|
||||
public String toString() {
|
||||
String dsedHeaderCommonInfo = "";
|
||||
|
||||
dsedHeaderCommonInfo += "\n SPDM Device Type = " + deviceTypeToString(deviceType);
|
||||
|
Loading…
Reference in New Issue
Block a user