Skip to content

p256+p384: add const fn inversions for all field elements#736

Merged
tarcieri merged 1 commit into
masterfrom
p256+p384/const-fn-inversions-for-all-field-elements
Feb 1, 2023
Merged

p256+p384: add const fn inversions for all field elements#736
tarcieri merged 1 commit into
masterfrom
p256+p384/const-fn-inversions-for-all-field-elements

Conversation

@tarcieri

@tarcieri tarcieri commented Feb 1, 2023

Copy link
Copy Markdown
Member

This adds an internal invert_unchecked method to all field element types, which is const fn.

It's used to impl the PrimeField constants which are inversions of other constant values.

@tarcieri tarcieri force-pushed the p256+p384/const-fn-inversions-for-all-field-elements branch from c51f223 to 595ca42 Compare February 1, 2023 18:03
This adds an internal `invert_unchecked` method to all field element
types, which is `const fn`.

It's used to impl the `PrimeField` constants which are inversions of
other constant values.
@tarcieri tarcieri force-pushed the p256+p384/const-fn-inversions-for-all-field-elements branch from 595ca42 to 110ce8f Compare February 1, 2023 18:47
@tarcieri tarcieri merged commit 5fd44d8 into master Feb 1, 2023
@tarcieri tarcieri deleted the p256+p384/const-fn-inversions-for-all-field-elements branch February 1, 2023 18:58
This was referenced Mar 3, 2023
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