-
Notifications
You must be signed in to change notification settings - Fork 13
Add new caliptra crypto primitives for SPDM #265
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
Conversation
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.
Pull Request Overview
This PR adds new cryptographic primitives to the Caliptra API to support SPDM (Security Protocol and Data Model) functionality. The changes introduce three new crypto modules that provide essential cryptographic operations needed for secure device communication.
Key changes include:
- Addition of ECDH (Elliptic Curve Diffie-Hellman) key exchange functionality
- Implementation of HMAC and HKDF (HMAC-based Key Derivation Function) operations
- Addition of cryptographic key import capabilities
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
runtime/userspace/api/caliptra-api/src/crypto/mod.rs | Exports the three new crypto modules (ecdh, hmac, import) |
runtime/userspace/api/caliptra-api/src/crypto/ecdh.rs | Implements ECDH key generation and exchange completion |
runtime/userspace/api/caliptra-api/src/crypto/hmac.rs | Provides HMAC, HKDF extract, and HKDF expand operations |
runtime/userspace/api/caliptra-api/src/crypto/import.rs | Enables importing cryptographic keys with specified usage patterns |
c5060eb
to
2de3d2b
Compare
The crypto is in #265 The transcripts are going to be complex, so I'll add those in a separate PR as well.
0fa3eb1
to
6c78879
Compare
Add ECDH, import, and HMAC tests Switch back to unaligned mem; move len subtract to after check
6c78879
to
e056e63
Compare
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.
LGTM
Thanks! |
No description provided.