Skip to content

Commit

Permalink
manifest: Report the firmware and ROM measurements
Browse files Browse the repository at this point in the history
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
  • Loading branch information
alistair23 authored and twilfredo committed Mar 27, 2024
1 parent 39a36e2 commit 328015f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion manifest/manifest.in.cbor
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,22 @@
[
/ measurement-map / {
/ mval / 1: {
/ name / 11: "ROM",
/ spdm-indirect / 12: {
/ index / 0: [1, 2]
/ index / 0: [1]
}
},
/ authorised-by / 2: [
/ tagged-pkix-base64-key-type / 554("base64_key_X")
]
}
],
[
/ measurement-map / {
/ mval / 1: {
/ name / 11: "Firmware",
/ spdm-indirect / 12: {
/ index / 0: [2]
}
},
/ authorised-by / 2: [
Expand Down
2 changes: 1 addition & 1 deletion src/libspdm/spdm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ pub const LIBSPDM_MAX_SPDM_MSG_SIZE: u32 = 0x2000;

const OPAQUE_SIZE: usize = 0;

const LIBSPDM_MEASUREMENT_BLOCK_HASH_NUMBER: u32 = 4;
const LIBSPDM_MEASUREMENT_BLOCK_HASH_NUMBER: u32 = 2;
const LIBSPDM_MEASUREMENT_BLOCK_NUMBER: u8 =
LIBSPDM_MEASUREMENT_BLOCK_HASH_NUMBER as u8 + 1 + 1 + 1;

Expand Down

0 comments on commit 328015f

Please sign in to comment.