-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
dsa: migrate to crypto-bigint
#784
Draft
aumetra
wants to merge
7
commits into
RustCrypto:master
Choose a base branch
from
aumetra:dsa-crypto-bigint
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+421
−418
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aumetra
force-pushed
the
dsa-crypto-bigint
branch
from
January 27, 2024 17:50
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 |
aumetra
force-pushed
the
dsa-crypto-bigint
branch
from
January 27, 2024 19:57
7fae06e
to
9ad098f
Compare
tarcieri
reviewed
Jan 28, 2024
aumetra
force-pushed
the
dsa-crypto-bigint
branch
from
July 23, 2024 19:49
cad2f3e
to
d584735
Compare
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a draft. The code is incredibly ugly.
Will clean it up as soon as I got all of the tests to pass.