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

ML-KEM FIPS 203 destruction of intermediate values #1907

Merged

Conversation

dkostic
Copy link
Contributor

@dkostic dkostic commented Oct 4, 2024

Issues:

CryptoAlg-2616

Description of changes:

FIPS 203 Section 3.3 requires destruction of intermediate values.
AWS-LC ML-KEM implementation allocates intermediate values
only on stack, so this destruction seems a bit silly, but we do it
anyway for compliance.

Call-outs:

Point out areas that need special attention or support during the review process. Discuss architecture or design changes.

Testing:

How is this change tested (unit tests, fuzz tests, etc.)? Are there any testing steps to be verified by the reviewer?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

FIPS 203 Section 3.3 requires destruction of intermediate values.
AWS-LC ML-KEM implementation allocates intermediate values
only on stack, so this destruction seems a bit silly, but we do it
anyway for compliance.
@dkostic dkostic requested a review from a team as a code owner October 4, 2024 18:08
@dkostic dkostic enabled auto-merge (squash) October 4, 2024 18:12
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.47%. Comparing base (70ef71f) to head (79e84fe).

Additional details and impacted files
@@               Coverage Diff                @@
##           fips-2024-09-27    #1907   +/-   ##
================================================
  Coverage            78.47%   78.47%           
================================================
  Files                  585      585           
  Lines                99517    99543   +26     
  Branches             14243    14243           
================================================
+ Hits                 78091    78115   +24     
- Misses               20788    20792    +4     
+ Partials               638      636    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dkostic dkostic merged commit d49b1e1 into aws:fips-2024-09-27 Oct 7, 2024
108 of 110 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