Skip to content

ed448-goldilocks: don't reduce points during decompression#1462

Open
daxpedda wants to merge 1 commit into
RustCrypto:masterfrom
daxpedda:ed448-point-reduction
Open

ed448-goldilocks: don't reduce points during decompression#1462
daxpedda wants to merge 1 commit into
RustCrypto:masterfrom
daxpedda:ed448-point-reduction

Conversation

@daxpedda

@daxpedda daxpedda commented Sep 24, 2025

Copy link
Copy Markdown
Contributor

RFC 8032 specifies that points shouldn't be just reduced during de-serialization.

This PR changes CompressedEdwardsY::decompress() to not reduce the point.
Additionally, CompressedDecaf::decompress() was reducing the point and then checking if the original point was reduced. The check if the point is reduced in the first place is much cheaper.

Related: dalek-cryptography/curve25519-dalek#626.

@daxpedda daxpedda mentioned this pull request Sep 24, 2025
55 tasks
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