Skip to content
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

BoxedUint: add constant-time division implementation #398

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Dec 6, 2023

Adapts the implementation originally from #277 to BoxedUint, adding the following methods:

  • BoxedUint::div_rem
  • BoxedUint::rem

Additionally, wrapping_div and checked_div have been changed to use the constant-time versions, rather than *_vartime.

Adapts the implementation originally from #277 to `BoxedUint`, adding
the following methods:

- `BoxedUint::div_rem`
- `BoxedUint::rem`

Additionally, `wrapping_div` and `checked_div` have been changed to use
the constant-time versions, rather than `*_vartime`.
@tarcieri tarcieri force-pushed the boxed-uint/constant-time-division branch from d6935cb to 244730f Compare December 6, 2023 16:55
@tarcieri tarcieri merged commit f6d0374 into master Dec 6, 2023
16 checks passed
@tarcieri tarcieri deleted the boxed-uint/constant-time-division branch December 6, 2023 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant