-
Notifications
You must be signed in to change notification settings - Fork 108
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
dsa: migrate to crypto-bigint
#784
base: master
Are you sure you want to change the base?
Conversation
d8a30e3
to
07c5a4c
Compare
Small question @tarcieri let params = BoxedMontyParams::new_vartime(Odd::new((**components.p()).clone()).unwrap());
let form = BoxedMontyForm::new((*y).clone(), params);
if *y < two() || form.pow(components.q()).to_montgomery() != BoxedUint::one() {
return Err(signature::Error::new());
} should be equivalent to the following code if y < two() || y.modpow(components.q(), components.p()) != BigUint::one() {
return Err(signature::Error::new());
} Right? Or did I make a mistake with the |
@aumetra I think you may have run into a confusing API we should really fix. Instead of (Personally I would've named everything |
needs an MSRV bump to 1.73 in |
7fae06e
to
9ad098f
Compare
cad2f3e
to
d584735
Compare
This is a draft. The code is incredibly ugly.
Will clean it up as soon as I got all of the tests to pass.