Skip to content

Commit

Permalink
Remove ExtendTci and rename DeriveChild to DeriveContext
Browse files Browse the repository at this point in the history
  • Loading branch information
sree-revoori1 authored and jhand2 committed Jan 26, 2024
1 parent 410f50d commit f46084b
Show file tree
Hide file tree
Showing 26 changed files with 518 additions and 753 deletions.
3 changes: 2 additions & 1 deletion dpe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dpe_profile_p384_sha384 = ["platform/dpe_profile_p384_sha384"]
# Run ARBITRARY_MAX_HANDLES=n cargo build --features arbitrary_max_handles to use this feature
arbitrary_max_handles = []
disable_simulation = []
disable_extend_tci = []
disable_recursive = []
disable_auto_init = []
disable_rotate_context = []
disable_x509 = []
Expand All @@ -21,6 +21,7 @@ disable_is_symmetric = []
disable_internal_info = []
disable_internal_dice = []
disable_is_ca = []
disable_retain_parent_context = []

[dependencies]
bitflags = "2.4.0"
Expand Down
3 changes: 1 addition & 2 deletions dpe/fuzz/src/fuzz_target_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ fn harness(data: &[u8]) {
let response_code = match response {
Response::GetProfile(ref res) => res.resp_hdr.status,
Response::InitCtx(ref res) => res.resp_hdr.status,
Response::DeriveChild(ref res) => res.resp_hdr.status,
Response::DeriveContext(ref res) => res.resp_hdr.status,
Response::RotateCtx(ref res) => res.resp_hdr.status,
Response::CertifyKey(ref res) => res.resp_hdr.status,
Response::Sign(ref res) => res.resp_hdr.status,
Response::DestroyCtx(ref resp_hdr) => resp_hdr.status,
Response::ExtendTci(ref res) => res.resp_hdr.status,
Response::GetCertificateChain(ref res) => res.resp_hdr.status,
Response::Error(ref resp_hdr) => resp_hdr.status,
};
Expand Down
2 changes: 1 addition & 1 deletion dpe/src/commands/certify_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl CommandExecution for CertifyKeyCmd {
label: &self.label,
tci_nodes: &nodes[..tcb_count],
is_ca: self.uses_is_ca(),
supports_extend_tci: dpe.support.extend_tci(),
supports_recursive: dpe.support.recursive(),
};

let mut issuer_name = [0u8; MAX_CHUNK_SIZE];
Expand Down
Loading

0 comments on commit f46084b

Please sign in to comment.