-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add support for ML-DSA #877
base: master
Are you sure you want to change the base?
Conversation
@bifurcation sure. Here's an example PR to add more sizes: RustCrypto/hybrid-array#104 Note that the |
Latest push adds signing/verification logic. It can verify its own signatures, but fails the ACVP test vectors. Note that it will not build against the public version of |
This PR is a first step toward ML-DSA support, as discussed in #8. It puts in place enough of the basic algebraic and encoding primitives to get key generation going.
Still TODO:
@tarcieri - This is currently blocked on
typenum
not having enough integers. Specifically, there is noArraySize
implementation forU4896
, which the compiler says is necessary forMlDsa87
. Can we get that added?@cothan, @marija-mijailovic - If you guys are still interested in collaborating, making PRs to this branch would be a good way to help.
On the latter point about overlap with ML-KEM: Thinking about this while I was writing this PR, it seems like the main shared stuff would be:
Getting those factored out would be a non-trivial savings, but would require some careful introduction of generics. For example, the algebraic stuff would have to be generic over the field over which the polynomials exist (since there are different
q
moduli in the two algorithms), as well as the details of multiplication of polynomials and NTT.