mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-16 09:49:46 +00:00
SPDM processing
This commit is contained in:
parent
2ee21afb3b
commit
2bfa614161
@ -36,6 +36,11 @@ public class DeviceSecurityEventDataDeviceContext {
|
|||||||
@Getter
|
@Getter
|
||||||
private String pciLength = "";
|
private String pciLength = "";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DeviceSecurityEventDataDeviceContext Constructor.
|
||||||
|
*
|
||||||
|
* @param dSEDbytes byte array holding the DeviceSecurityEventData.
|
||||||
|
*/
|
||||||
public DeviceSecurityEventDataDeviceContext(final byte[] dSEDbytes, int byteStartOffset) {
|
public DeviceSecurityEventDataDeviceContext(final byte[] dSEDbytes, int byteStartOffset) {
|
||||||
|
|
||||||
int byteOffset = byteStartOffset;
|
int byteOffset = byteStartOffset;
|
||||||
|
@ -73,6 +73,16 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public class DeviceSecurityEventDataHeader {
|
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.
|
* Signature (text) data.
|
||||||
*/
|
*/
|
||||||
@ -85,22 +95,22 @@ public class DeviceSecurityEventDataHeader {
|
|||||||
@Getter
|
@Getter
|
||||||
private String version = "";
|
private String version = "";
|
||||||
/**
|
/**
|
||||||
* Contains the human-readable info inside the Device Security Event.
|
* Event Data Length.
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
private String dSEDheaderInfo = "";
|
private String length = "";
|
||||||
/**
|
/**
|
||||||
* Contains the size (in bytes) of the Header.
|
* Signature (text) data.
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
private Integer dSEDheaderByteSize = 0;
|
private String spdmHashAlgo = "";
|
||||||
//
|
|
||||||
// /**
|
/**
|
||||||
// * EvEfiSpecIdEvent Constructor.
|
* DeviceSecurityEventDataHeader Constructor.
|
||||||
// *
|
*
|
||||||
// * @param efiSpecId byte array holding the spec ID Event.
|
* @param dSEDbytes byte array holding the DeviceSecurityEventData.
|
||||||
// */
|
*/
|
||||||
// public EvEfiSpecIdEvent(final byte[] efiSpecId) {
|
public DeviceSecurityEventDataHeader(final byte[] dSEDbytes) {
|
||||||
// algList = new ArrayList<>();
|
// algList = new ArrayList<>();
|
||||||
// byte[] signatureBytes = new byte[UefiConstants.SIZE_16];
|
// byte[] signatureBytes = new byte[UefiConstants.SIZE_16];
|
||||||
// System.arraycopy(efiSpecId, 0, signatureBytes, 0, UefiConstants.SIZE_16);
|
// System.arraycopy(efiSpecId, 0, signatureBytes, 0, UefiConstants.SIZE_16);
|
||||||
@ -143,7 +153,7 @@ public class DeviceSecurityEventDataHeader {
|
|||||||
// } else {
|
// } else {
|
||||||
// cryptoAgile = true;
|
// cryptoAgile = true;
|
||||||
// }
|
// }
|
||||||
// }
|
}
|
||||||
//
|
//
|
||||||
// /**
|
// /**
|
||||||
// * Returns a human readable description of the data within this event.
|
// * Returns a human readable description of the data within this event.
|
||||||
|
Loading…
Reference in New Issue
Block a user