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

[feat] FMC DICE changes for adding MLDSA support #1850

Open
wants to merge 1 commit into
base: main-2.x
Choose a base branch
from

Conversation

mhatrevi
Copy link
Collaborator

No description provided.

@mhatrevi mhatrevi added the Caliptra v2.0 Items to be considered for v2.0 Release label Dec 13, 2024
@mhatrevi mhatrevi force-pushed the vmhatre/datavault-in-dccm branch from e0d80da to 92c32ad Compare December 16, 2024 22:24
@mhatrevi mhatrevi force-pushed the vmhatre/fmc-dice-mldsa branch from 5f8147a to 17b45f2 Compare December 18, 2024 05:45
@mhatrevi mhatrevi changed the base branch from vmhatre/datavault-in-dccm to main-2.x December 18, 2024 05:45
///
/// * `Array4x8` - Digest
pub fn sha256_digest(sha256: &mut Sha256, data: &[u8]) -> CaliptraResult<Array4x8> {
sha256.digest(data)
Copy link
Contributor

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 {
Copy link
Contributor

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 {}
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Caliptra v2.0 Items to be considered for v2.0 Release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants