SPDM processing

This commit is contained in:
iadgovuser58 2024-04-10 12:02:01 -04:00 committed by chubtub
parent 2ee21afb3b
commit 2bfa614161
2 changed files with 27 additions and 12 deletions

View File

@ -36,6 +36,11 @@ public class DeviceSecurityEventDataDeviceContext {
@Getter
private String pciLength = "";
/**
* DeviceSecurityEventDataDeviceContext Constructor.
*
* @param dSEDbytes byte array holding the DeviceSecurityEventData.
*/
public DeviceSecurityEventDataDeviceContext(final byte[] dSEDbytes, int byteStartOffset) {
int byteOffset = byteStartOffset;

View File

@ -73,6 +73,16 @@ import java.util.List;
*/
public class DeviceSecurityEventDataHeader {
/**
* Contains the human-readable info inside the Device Security Event.
*/
@Getter
private String dSEDheaderInfo = "";
/**
* Contains the size (in bytes) of the Header.
*/
@Getter
private Integer dSEDheaderByteSize = 0;
/**
* Signature (text) data.
*/
@ -85,22 +95,22 @@ public class DeviceSecurityEventDataHeader {
@Getter
private String version = "";
/**
* Contains the human-readable info inside the Device Security Event.
* Event Data Length.
*/
@Getter
private String dSEDheaderInfo = "";
private String length = "";
/**
* Contains the size (in bytes) of the Header.
* Signature (text) data.
*/
@Getter
private Integer dSEDheaderByteSize = 0;
//
// /**
// * EvEfiSpecIdEvent Constructor.
// *
// * @param efiSpecId byte array holding the spec ID Event.
// */
// public EvEfiSpecIdEvent(final byte[] efiSpecId) {
private String spdmHashAlgo = "";
/**
* DeviceSecurityEventDataHeader Constructor.
*
* @param dSEDbytes byte array holding the DeviceSecurityEventData.
*/
public DeviceSecurityEventDataHeader(final byte[] dSEDbytes) {
// algList = new ArrayList<>();
// byte[] signatureBytes = new byte[UefiConstants.SIZE_16];
// System.arraycopy(efiSpecId, 0, signatureBytes, 0, UefiConstants.SIZE_16);
@ -143,7 +153,7 @@ public class DeviceSecurityEventDataHeader {
// } else {
// cryptoAgile = true;
// }
// }
}
//
// /**
// * Returns a human readable description of the data within this event.