-
Notifications
You must be signed in to change notification settings - Fork 267
k256+p256+p384: add PrimeField constant tests
#737
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
Conversation
Adds tests for the `TWO_INV`, `ROOT_OF_UNITY`, and `ROOT_OF_UNITY_INV` constants, based on the tests generated via `ff_derive`. Some of them are currently failing and have been annotated with `#[ignore]` and a TODO comment.
|
Note: they're copy-pasted for now, but once I get these all working (including |
|
I think there are a few tests missing here:
|
|
Yeah as implied in the comment above yours the |
|
Whoa, just hit an ICE on stable Rust (looks like while compiling the dependencies): https://github.com/RustCrypto/elliptic-curves/actions/runs/4078778175/jobs/7029397528 Edit: filed an issue rust-lang/rust#107613 |
|
Okay, after an ICE and failures possibly related to GitHub rewriting OS package tarballs I'm going to land this while it's green. Will backfill a few additional tests and try to consolidate the definitions of the test into a reusable macro. |
Adds tests for the
TWO_INV,ROOT_OF_UNITY, andROOT_OF_UNITY_INVconstants, based on the tests generated viaff_derive.Some of them are currently failing and have been annotated with
#[ignore]and a TODO comment.