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

p384: make core field ops const fn #590

Merged
merged 1 commit into from Jun 3, 2022
Merged

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Jun 3, 2022

Now that #589 is landed, it's possible to add const fn implementations of all core field operations, including conersions to/from Montgomery form as well as arithmetic operations: add, double, sub, mul, neg, square

Now that #589 is landed, it's possible to add `const fn` implementations
of all core field operations, including conersions to/from Montgomery
form as well as arithmetic operations: add, double, sub, mul, neg, square
@tarcieri tarcieri merged commit ada7359 into master Jun 3, 2022
@tarcieri tarcieri deleted the p384/const-fn-field=ops branch June 3, 2022 00:15
tarcieri added a commit that referenced this pull request Jun 3, 2022
Now that conversions to/from the Montgomery domain are `const fn` (#590)
it's possible to define constants in their canonical form, rather than
converting them into the Montgomery domain first.

This makes the code clearer and easier to audit.
tarcieri added a commit that referenced this pull request Jun 3, 2022
Now that conversions to/from the Montgomery domain are `const fn` (#590)
it's possible to define constants in their canonical form, rather than
converting them into the Montgomery domain first.

This makes the code clearer and easier to audit.
@tarcieri tarcieri mentioned this pull request Jun 3, 2022
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.

None yet

1 participant