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

MLDSA validation #692

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

MLDSA validation #692

wants to merge 11 commits into from

Conversation

mojtaba-bisheh
Copy link
Contributor

@mojtaba-bisheh mojtaba-bisheh commented Jan 15, 2025

Caliptra:

  • fixed hmac directed test and added csr test
  • added randomized pcr mldsa signing
  • made mldsa/ecc running parallelly
  • updated submodule

AdamsBridge:

  • enabled ready/valid sync check
  • added randomized mldsa with invalid verify
  • added randomized mldsa error trigger

@@ -265,8 +266,10 @@ module caliptra_top_tb_services
// 8'h7F - Do nothing
// 8'h80: 8'h87 - Inject ECC_SEED to kv_key register
// 8'h90 - Issue PCR singing with fixed vector
// 8'h91 - Issue PCR singing with randomized vector
// 8'h92 - Check PCR singing with randomized vector
// 8'h91 - Issue PCR ECC singing with randomized vector
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: typos in comments

Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the purpose of this linker file?
It seems like it can be omitted, since it uses the standard offsets, and assumes the smaller 128KiB DCCM size (without failing, apparently).
If it's needed, I recommend updating it to match the other custom mldsa linkers.

_bss_vma_end = _bss_vma_start + SIZEOF(.bss);

_end = _bss_lma_end;
ASSERT( _end < 0x0000C000, "ERROR: ROM size exceeds 48KiB")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This linker also has old ram sizes baked in

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