Skip to content

Conversation

@tarcieri
Copy link
Member

Adds an internal impl_montgomery_reduction! macro which can be used to abstract over const fn use cases as well as BoxedUint use cases which would require const_mut_refs to be usable from a const fn.

This is used to define an inner mul_montgomery_from function which works on BoxedUint.

It isn't yet tested/used and marked as allow(dead_code), but I'd like to perform some major refactoring without losing these changes.

Adds an internal `impl_montgomery_reduction!` macro which can be used to
abstract over `const fn` use cases as well as `BoxedUint` use cases
which would require `const_mut_refs` to be usable from a `const fn`.

This is used to define an inner `mul_montgomery_from` function which
works on `BoxedUint`.

It isn't yet tested/used and marked as `allow(dead_code)`, but I'd like
to perform some major refactoring without losing these changes.
@tarcieri tarcieri merged commit d6c01b7 into master Nov 26, 2023
@tarcieri tarcieri deleted the boxed-uint/montgomery branch November 26, 2023 22:49
@tarcieri tarcieri mentioned this pull request Jan 22, 2025
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