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

Exchange CDI for CDI handle via DPE::Crypto trait #379

Open
wants to merge 1 commit into
base: feature/gh-issue-caliptra-sw-1807
Choose a base branch
from

Conversation

clundin25
Copy link
Contributor

No description provided.

@clundin25 clundin25 requested a review from jhand2 January 16, 2025 01:11
crypto/src/openssl.rs Outdated Show resolved Hide resolved
@clundin25 clundin25 force-pushed the cdi-handle-exchange-pr branch 6 times, most recently from cab66ad to fd8ae95 Compare January 22, 2025 01:10
Comment on lines +201 to +205
for (stored_cdi, stored_handle) in self.export_cdi_slots.iter() {
if stored_cdi == cdi {
return Ok(stored_handle.to_owned());
}
}
Copy link
Contributor Author

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?

/// # Arguments
///
/// * `exported_cdi_handle` - The handle to the CDI.
fn get_cdi_from_exported_handle(
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@clundin25 clundin25 force-pushed the cdi-handle-exchange-pr branch from fd8ae95 to bdf97b4 Compare January 22, 2025 01:18
@clundin25 clundin25 force-pushed the cdi-handle-exchange-pr branch from bdf97b4 to 5a633c9 Compare January 22, 2025 01:27
@clundin25 clundin25 requested a review from jhand2 January 22, 2025 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants