-
Notifications
You must be signed in to change notification settings - Fork 22
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
Exchange CDI for CDI handle via DPE::Crypto trait #379
base: feature/gh-issue-caliptra-sw-1807
Are you sure you want to change the base?
Exchange CDI for CDI handle via DPE::Crypto trait #379
Conversation
cab66ad
to
fd8ae95
Compare
for (stored_cdi, stored_handle) in self.export_cdi_slots.iter() { | ||
if stored_cdi == cdi { | ||
return Ok(stored_handle.to_owned()); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a valid scenario?
crypto/src/lib.rs
Outdated
/// # Arguments | ||
/// | ||
/// * `exported_cdi_handle` - The handle to the CDI. | ||
fn get_cdi_from_exported_handle( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this internal to Caliptra RT FW since SIGN_WITH_EXPORTED is a Caliptra command? I'm not sure DPE needs to be able to do this lookup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a fair point, I'll remove this from the trait.
fd8ae95
to
bdf97b4
Compare
bdf97b4
to
5a633c9
Compare
No description provided.