-
Notifications
You must be signed in to change notification settings - Fork 75
Revert "Write random_mod in terms of new random_bits"
#1060
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
Conversation
c416078 to
34e59bd
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1060 +/- ##
==========================================
+ Coverage 78.75% 78.81% +0.06%
==========================================
Files 173 173
Lines 17671 17656 -15
==========================================
- Hits 13917 13916 -1
+ Misses 3754 3740 -14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Ach, annoying. Sorry to cost you debugging time. This is I can try to take a look. |
|
Yes, more specifically: https://github.com/RustCrypto/signatures/tree/master/dsa Both sign and verify tests seemed to fail, though I'm not sure if the test hardcodes a particular keygen. If you're interested in taking a look, let me know if you need help reproducing it. |
|
I have a local repro working. Indeed, the tests generate a deterministic keypair in a way that ultimately winds up depending on With any downstream dependency of How would we like to proceed? Options I see:
My preference would be 1 or 2 but I’m not opposed to any of them. |
|
@mrdomino I'm fine with #1. It's annoying the test hardcodes a specific keygen. Sorry I didn't have time to examine it before reverting (though it's nice to be unblocked on upgrading I can probably just revert the revert, but it would be good to get the They can probably just be changed to verify a known good key/signature/message, and to generate a random key, sign a message, and then verify the signature, without hardcoding a specific signature produced. |
|
Yeah, that makes sense to me. Sounds good - let me know if I can be of further assistance. |
This reverts commit ba4f0e0 (#1026)
For whatever reason this breaks the
dsatest suite.I'm in the middle of a major refactoring in
crypto-bigintand this took quite a bit of bisecting to figure out on top of all of that, so I don't have time to investigate why.cc @mrdomino