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

Basic fuzzing for C extraction of ML-KEM768 #554

Merged
merged 7 commits into from
Sep 19, 2024

Conversation

djmdjm
Copy link
Contributor

@djmdjm djmdjm commented Sep 2, 2024

Here are some very basic fuzzers for the main operations of the ML-KEM C extraction: public key validation, encapsulate and decapsulate. They aren't at all sophisticated, but I wrote them to double-check the soundness of the C extraction wrt undefined behaviour and memory safety. No findings after running over the weekend on 128 cores :)

@djmdjm
Copy link
Contributor Author

djmdjm commented Sep 2, 2024

BTW I won't be at all offended if you reject this as unsuitable for the project; like I said, this was mostly for my own paranoia.

@franziskuskiefer
Copy link
Member

Nice, thanks!

BTW I won't be at all offended if you reject this as unsuitable for the project; like I said, this was mostly for my own paranoia.

Not at all. We'll need to find time to look at it. But this is great to have here!

Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

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

Thanks, this is great!
I finally go around to looking at it. I'll merge as is. I only formatted and changed to clang-18.

@djmdjm
Copy link
Contributor Author

djmdjm commented Sep 19, 2024

Thanks! I did have a small error pointed out to me in one of the fuzz harnesses. I'll send a followup PR

@franziskuskiefer franziskuskiefer added this pull request to the merge queue Sep 19, 2024
Merged via the queue into cryspen:main with commit 41072c6 Sep 19, 2024
48 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.

2 participants