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

Increase the size of the certificate in Stage0 DICE data #4946

Merged
merged 2 commits into from
Mar 22, 2024
Merged
Changes from 1 commit
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 oak_dice/src/evidence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub const X25519_PRIVATE_KEY_SIZE: usize = 32;
pub const PUBLIC_KEY_SIZE: usize = 256;

/// The maximum size of a serialized CWT certificate.
pub const CERTIFICATE_SIZE: usize = 1024;
pub const CERTIFICATE_SIZE: usize = 1536;

/// The name of the kernel command-line parameter that is used to send the
/// physical address of the Stage 0 DICE data struct.
Expand Down Expand Up @@ -190,7 +190,7 @@ pub struct Stage0DiceData {
pub layer_1_certificate_authority: CertificateAuthority,
/// The compound device identifier for Layer 1.
pub layer_1_cdi: CompoundDeviceIdentifier,
_padding_1: [u8; 640],
_padding_1: [u8; 128],
}

static_assertions::assert_eq_size!([u8; 4096], Stage0DiceData);
Expand Down
Loading