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

When calculating the Elligator 2 forward map, use -b if required. #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Yawning
Copy link

@Yawning Yawning commented Nov 14, 2015

I have a C++ version of this code, and a user notified me of this a while ago, but I haven't gotten around to looking into it till now.

Per section 5.5 of the Elligator paper:

"Here |b| means b if b \in {0,1,...,(q - 1)/2}, otherwise b."

The old code would sometimes return representatives that are 255 bits in length, which is incorrect (#S = (q + 1)/2).

Per section 5.5 of the Elligator paper:

  "Here |b| means b if b \in {0,1,...,(q - 1)/2}, otherwise b."

The old code would sometimes return representatives that are 255 bits
in length, which is incorrect (#S = (q + 1)/2).
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.

None yet

1 participant