Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Fix MAX_MANAGED_BUFFER_TH_SIZE
Browse files Browse the repository at this point in the history
Hash of cert should be appended, not cert data.

Signed-off-by: Jiewen Yao <[email protected]>
  • Loading branch information
jyao1 committed Dec 20, 2023
1 parent 7d5d9dc commit 5b01171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spdmlib/src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1171,9 +1171,9 @@ const MAX_MANAGED_BUFFER_M1M2_SIZE: usize =
MAX_MANAGED_BUFFER_A_SIZE + MAX_MANAGED_BUFFER_B_SIZE + MAX_MANAGED_BUFFER_C_SIZE;
const MAX_MANAGED_BUFFER_L1L2_SIZE: usize = MAX_MANAGED_BUFFER_A_SIZE + MAX_MANAGED_BUFFER_M_SIZE;
const MAX_MANAGED_BUFFER_TH_SIZE: usize = MAX_MANAGED_BUFFER_A_SIZE
+ config::MAX_SPDM_CERT_CHAIN_DATA_SIZE
+ SPDM_MAX_HASH_SIZE
+ MAX_MANAGED_BUFFER_K_SIZE
+ config::MAX_SPDM_CERT_CHAIN_DATA_SIZE
+ SPDM_MAX_HASH_SIZE
+ MAX_MANAGED_BUFFER_F_SIZE;

const SPDM_VERSION_1_2_SIGNING_PREFIX_CONTEXT_SIZE: usize = 64;
Expand Down

0 comments on commit 5b01171

Please sign in to comment.