Skip to content

Conversation

AlexJones0
Copy link

@AlexJones0 AlexJones0 commented Dec 17, 2024

This PR updates the KMAC's register interface to match the latest changes to Earlgrey's KMAC. These changes include:

  • Removal of ERR_PROCESSED from the CFG_SHADOWED register.
  • Addition of the ERR_PROCESSED command. Most of the functionality is related to the entropy FSM which is still a TODO, but this does also clear the relevant alert as in the RTL.
  • Replaced ENTROPY_SEED_{0,4} with just one ENTROPY_SEED register, which shifts the mappings of subsequent registers.

This change has been tested against previously passing test kmac_smoketest, which still passes. It also makes the following tests (which were previously failing) pass: kmac_functest, kmac_functest_hardcoded, kmac_mode_cshake_test and kmac_mode_kmac_test. All tests were built from master on OpenTitan.

This commit updates the KMAC's register interface to match the latest
changes to Earlgrey's KMAC. These changes include:
  - Removal of `ERR_PROCESSED` from the `CFG_SHADOWED` register.
  - Addition of the `ERR_PROCESSED` command. Most of the functionality
  is related to the entropy FSM which is still a TODO, but this does
  also clear the relevant alert as in the RTL.
  - Replaced `ENTROPY_SEED_{0,4}` with just one `ENTROPY_SEED` register,
    which shifts the mappings of subsequent registers.
  - Increase the MMIO State and MSG FIFO sizes.
Copy link

@rivos-eblot rivos-eblot left a comment

Choose a reason for hiding this comment

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

LGTM. However, Loïc wrote the original KMAC implementation, maybe he has more feedback details that I can think of.

@jwnrt jwnrt merged commit 38e8fb4 into lowRISC:dev/ot-earlgrey-1.0.0-updates Jan 2, 2025
6 checks passed
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.

4 participants