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

Fix inlining of Kyber re-encryption #339

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Fix inlining of Kyber re-encryption #339

merged 2 commits into from
Apr 16, 2024

Conversation

mkannwischer
Copy link
Contributor

Unfortunately, I have forgotten to include the inlining of the re-encryption in the kem.c when I updated to the NIST draft version in #332.

I fixed it here. This reduces the stack usage of decaps by 1 ciphertext size.
There was also a bug in the inlined re-encryption that resulted in the re-encryption always failing (but that was dead code).

@mkannwischer mkannwischer merged commit 4584cfc into master Apr 16, 2024
6 checks passed
@mkannwischer mkannwischer deleted the fixkyber branch April 16, 2024 01:24
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.

1 participant