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

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
crypto/src/openssl.rs Outdated Show resolved Hide resolved
crypto/src/lib.rs Outdated Show resolved Hide resolved
@clundin25 clundin25 force-pushed the cdi-handle-exchange-pr branch 2 times, most recently from bdf97b4 to 5a633c9 Compare January 22, 2025 01:27
@clundin25 clundin25 requested a review from jhand2 January 22, 2025 01:37
crypto/src/openssl.rs Outdated Show resolved Hide resolved
crypto/src/openssl.rs Outdated Show resolved Hide resolved
dpe/src/x509.rs Outdated Show resolved Hide resolved
@clundin25 clundin25 force-pushed the cdi-handle-exchange-pr branch from 5a633c9 to c78f0c2 Compare January 23, 2025 17:40
@clundin25 clundin25 requested a review from jhand2 January 23, 2025 17:40
@clundin25 clundin25 force-pushed the cdi-handle-exchange-pr branch 2 times, most recently from b78c812 to 4a114b3 Compare January 23, 2025 19:52
@@ -41,23 +44,37 @@ impl Hasher for OpensslHasher {
}
}

// Currently only supports one CDI handle but in the future we may want to support multiple.
const MAX_CDI_HANDLES: usize = 1;
type ExportedCdiHandle = [u8; MAX_EXPORTED_CDI_SIZE];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be defined in lib.rs?

Copy link
Contributor Author

@clundin25 clundin25 Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. I kept MAX_CDI_HANDLES private since it's implementation dependent but I'm happy to make it public.

@clundin25 clundin25 force-pushed the cdi-handle-exchange-pr branch from 4a114b3 to 47af71f Compare January 24, 2025 22:26
@clundin25 clundin25 requested a review from jhand2 January 24, 2025 22:32
crypto/src/lib.rs Outdated Show resolved Hide resolved
@clundin25 clundin25 force-pushed the cdi-handle-exchange-pr branch from 47af71f to 3297d02 Compare January 27, 2025 20:39
@clundin25 clundin25 merged commit 2b7de2d into chipsalliance:feature/gh-issue-caliptra-sw-1807 Jan 27, 2025
2 checks passed
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