Skip to content

Conversation

daxpedda
Copy link
Contributor

@daxpedda daxpedda commented Sep 24, 2025

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