Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DPE submodule #1890

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/src/mailbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ pub struct CertifyKeyExtendedResp {
pub certify_key_resp: [u8; CertifyKeyExtendedResp::CERTIFY_KEY_RESP_SIZE],
}
impl CertifyKeyExtendedResp {
pub const CERTIFY_KEY_RESP_SIZE: usize = 2176;
pub const CERTIFY_KEY_RESP_SIZE: usize = 6272;
}
impl Response for CertifyKeyExtendedResp {}

Expand Down Expand Up @@ -700,7 +700,7 @@ pub struct InvokeDpeResp {
pub data: [u8; InvokeDpeResp::DATA_MAX_SIZE], // variable length
}
impl InvokeDpeResp {
pub const DATA_MAX_SIZE: usize = 2200;
pub const DATA_MAX_SIZE: usize = 6556;
}
impl ResponseVarSize for InvokeDpeResp {}

Expand Down
10 changes: 5 additions & 5 deletions drivers/src/memory_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ pub const CFI_STATE_ORG: u32 = 0x500003E4; // size = 6 words
pub const BOOT_STATUS_ORG: u32 = 0x500003FC;
pub const PERSISTENT_DATA_ORG: u32 = 0x50000400;

pub const DATA_ORG: u32 = 0x5000D800;
pub const DATA_ORG: u32 = 0x50009C00;

pub const STACK_ORG: u32 = 0x5000f800;
pub const STACK_ORG: u32 = 0x5000A400;
pub const ROM_STACK_ORG: u32 = 0x5001C000;

pub const ESTACK_ORG: u32 = 0x5001F800;
Expand All @@ -45,16 +45,16 @@ pub const ROM_NSTACK_ORG: u32 = 0x5001FC00;
// reserved for future use and then allocating the rest of the DCCM.
//
// The `DATA_SIZE` variable reflects the leftover space.
pub const PERSISTENT_DATA_SIZE: u32 = 53 * 1024;
pub const PERSISTENT_DATA_SIZE: u32 = 38 * 1024;

pub const ROM_RELAXATION_PADDING: u32 = 4 * 1024;
pub const ROM_SIZE: u32 = 48 * 1024;
pub const MBOX_SIZE: u32 = 128 * 1024;
pub const ICCM_SIZE: u32 = 128 * 1024;
pub const DCCM_SIZE: u32 = 128 * 1024;
pub const ROM_DATA_SIZE: u32 = 996;
pub const DATA_SIZE: u32 = 8 * 1024;
pub const STACK_SIZE: u32 = 64 * 1024;
pub const DATA_SIZE: u32 = 2 * 1024;
pub const STACK_SIZE: u32 = 85 * 1024;
pub const ROM_STACK_SIZE: u32 = 14 * 1024;
pub const ESTACK_SIZE: u32 = 1024;
pub const ROM_ESTACK_SIZE: u32 = 1024;
Expand Down
2 changes: 1 addition & 1 deletion drivers/src/persistent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub const DPE_SIZE: u32 = 5 * 1024;
pub const PCR_RESET_COUNTER_SIZE: u32 = 1024;
pub const AUTH_MAN_IMAGE_METADATA_MAX_SIZE: u32 = 7 * 1024;
pub const IDEVID_CSR_SIZE: u32 = 1024;
pub const RESERVED_MEMORY_SIZE: u32 = 19 * 1024;
pub const RESERVED_MEMORY_SIZE: u32 = 4 * 1024;

pub const PCR_LOG_MAX_COUNT: usize = 17;
pub const FUSE_LOG_MAX_COUNT: usize = 62;
Expand Down
4 changes: 2 additions & 2 deletions libcaliptra/inc/caliptra_enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ enum dpe_error_codes {
DPE_RAND_ERROR = 0x1007,
};

#define DPE_PROFILE_256 1
#define DPE_PROFILE_384 2
#define DPE_PROFILE_256 3
#define DPE_PROFILE_384 4

enum dpe_profile {
P256Sha256 = DPE_PROFILE_256,
Expand Down
4 changes: 2 additions & 2 deletions libcaliptra/inc/caliptra_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct caliptra_certify_key_extended_req {

struct caliptra_certify_key_extended_resp {
struct caliptra_resp_header hdr;
uint8_t certify_key_resp[2176];
uint8_t certify_key_resp[6272];
};

struct caliptra_fips_version_resp {
Expand Down Expand Up @@ -243,7 +243,7 @@ struct dpe_resp_hdr {


#define DPE_HANDLE_SIZE 16
#define DPE_CERT_SIZE 2048
#define DPE_CERT_SIZE 6144

#ifndef DPE_PROFILE
#define DPE_PROFILE DPE_PROFILE_384
Expand Down
2 changes: 1 addition & 1 deletion test/dpe_verification/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (s *CptraModel) GetProfileMajorVersion() uint16 {
}

func (s *CptraModel) GetProfileMinorVersion() uint16 {
return 10
return 11
}

func (s *CptraModel) GetProfileVendorID() uint32 {
Expand Down
Loading