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] Firmware image generation and verification with MLDSA keys. #1830

Draft
wants to merge 1 commit into
base: vmhatre/sha512
Choose a base branch
from

Conversation

mhatrevi
Copy link
Collaborator

@mhatrevi mhatrevi commented Dec 3, 2024

This change updates the image generator to generate an image with MLDSA public keys and signatures. Additionally, this change updates the image verifier for verifying the image signatures with the MLDSA public keys.

This change updates the image generator to generate an image with MLDSA public keys and signatures. Additionally, this change udpates the image verifier for verifying the image signatures with the MLDSA public keys.
impl ImageMldsaPubKey {
pub fn ref_from_prefix(bytes: &[u8]) -> Option<&Self> {
if bytes.len() >= size_of::<Self>() {
Some(unsafe { &*(bytes.as_ptr() as *const Self) })
Copy link
Contributor

Choose a reason for hiding this comment

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

Why aren't we using zerocopy for these?

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