Closed
Conversation
Member
d8a30e3 to
07c5a4c
Compare
Contributor
Author
|
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 |
Member
|
@aumetra I think you may have run into a confusing API we should really fix. Instead of (Personally I would've named everything |
Contributor
Author
Member
|
needs an MSRV bump to 1.73 in |
7fae06e to
9ad098f
Compare
tarcieri
reviewed
Jan 28, 2024
cad2f3e to
d584735
Compare
Member
|
If you have any spare time, I think we could use this rewrite very soon as it should ease up the transition to |
Member
|
Closing in favor of #906 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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.