-
Notifications
You must be signed in to change notification settings - Fork 45
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
[feat] FMC DICE changes for adding MLDSA support #1850
base: main-2.x
Are you sure you want to change the base?
Conversation
e0d80da
to
92c32ad
Compare
5f8147a
to
17b45f2
Compare
17b45f2
to
3faf572
Compare
/// | ||
/// * `Array4x8` - Digest | ||
pub fn sha256_digest(sha256: &mut Sha256, data: &[u8]) -> CaliptraResult<Array4x8> { | ||
sha256.digest(data) |
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.
I'm not sure why we need this function, which just wraps a simple method call? (ditto for sha384)
/// X509 API | ||
pub enum X509 {} | ||
|
||
impl X509 { |
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.
Since these are already in a separate mod
, it feels redundant to have an empty enum
to contain. We could just have these be functions in this file without the enum
and impl
.
That way later we don't have to have the triply redundant caliptra_x509::x509::X509::method_name()
.
use caliptra_drivers::*; | ||
use core::mem::size_of; | ||
use core::usize; | ||
use zerocopy::AsBytes; | ||
|
||
/// X509 API | ||
pub enum X509 {} |
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.
Ditto here about eliminating this empty enum
.
No description provided.