Skip to content

Conversation

@tarcieri
Copy link
Member

Now that #335 has been merged allowing NonZero<BoxedUint> to be expressed, we can use it as the operand for remainder, eliminating the need to handle division by zero at the type system level.

This dramatically simplifies the implementation of BoxedResidueParams::new since now all of the remainder calculations are infallible, and is more consistent with the other remainder functions.

Now that #335 has been merged allowing `NonZero<BoxedUint>` to be
expressed, we can use it as the operand for remainder, eliminating the
need to handle division by zero at the type system level.

This dramatically simplifies the implementation of
`BoxedResidueParams::new` since now all of the remainder calculations
are infallible, and is more consistent with the other remainder
functions.
@tarcieri tarcieri merged commit c966aea into master Nov 27, 2023
@tarcieri tarcieri deleted the boxed-uint/infallible-rem-vartime branch November 27, 2023 23:19
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.

2 participants