-
Couldn't load subscription status.
- Fork 70
Some fixes for modular inversion #159
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ef3cc6a
Fix an inefficiency in inversion for 32-bit limbs
fjarri 0dd4ebe
Fix a hardcoded bit size in comments
fjarri be825a6
Break down long lines
fjarri 9f254d3
Add `inv_odd_mod_bounded()`, remove `inv_odd_mod_option()`
fjarri 413464b
Normalize the type of is_some in const fns (Word everywhere)
fjarri c403b55
Replaced a multiplication with a negation in ct_is_odd()
fjarri cb8bb89
Rename Reciprocal::new_const() to ct_new(), to match the codebase style
fjarri 73f4d5e
Remove an unused style exception
fjarri cbc90c1
Replace redundant multiplications with negations
fjarri 42c2f7a
Use the CtChoice alias instead of plain Word
fjarri 87a7381
Normalize constant-time comparisons API in Limb and Uint, remove ct_c…
fjarri d4d99aa
Rename Limb::is_nonzero() to ct_is_nonzero() to match Uint
fjarri 6687023
Pass Uints by reference
fjarri 13de849
Introduce the `CtChoice` newtype
fjarri 631ae08
Make const fn comparisons in Uint have the same signatures as the one…
fjarri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.