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 randomness consumption in XWing draft 2 implementation #792

Merged

Conversation

kkohbrok
Copy link
Contributor

@kkohbrok kkohbrok commented Feb 6, 2025

Both in version 2 and in version 6 (the current version at the time of writing), encap of XWing should take 64 bytes of randomness, where it uses the first 32 bytes for ML-KEM and the second 32 bytes for X25519. Right now, it uses the first 32 bytes for both ML-KEM and X25519. This PR fixes that.

@kkohbrok kkohbrok requested a review from a team as a code owner February 6, 2025 08:56
@franziskuskiefer franziskuskiefer mentioned this pull request Feb 6, 2025
Copy link
Collaborator

@jschneider-bensch jschneider-bensch left a comment

Choose a reason for hiding this comment

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

You're absolutely right, thanks for fixing this!

@franziskuskiefer franziskuskiefer merged commit 751dcf7 into cryspen:main Feb 7, 2025
61 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.

3 participants