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

p521: Improve Debug for unsaturated math #949

Merged
merged 3 commits into from
Nov 2, 2023
Merged

p521: Improve Debug for unsaturated math #949

merged 3 commits into from
Nov 2, 2023

Conversation

MasterAwesome
Copy link
Contributor

@MasterAwesome MasterAwesome commented Nov 2, 2023

When using p521, the limbs can be populated differently which when deriving [Debug] shows up as different values for equal FieldElements, this can lead to confusion.

See:

When using p521, the limbs can be populated differently which when
deriving [`Debug`] shows up as different values for equal FieldElements,
this can lead to confusion.

See:
-
#946 (comment),
equal field elements were considered as unequal.
-
#946 (comment),
assert_eq! wasn't meaningful.

Signed-off-by: Arvind Mukund <[email protected]>
@tarcieri tarcieri merged commit 81f6087 into RustCrypto:master Nov 2, 2023
122 checks passed
@MasterAwesome MasterAwesome deleted the improve_debugging_for_unsat_math branch November 2, 2023 22:22
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