Skip to content

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

Open
Yawning wants to merge 1 commit intoagl:masterfrom
Yawning:lesser_root
Open

When calculating the Elligator 2 forward map, use -b if required.#12
Yawning wants to merge 1 commit intoagl:masterfrom
Yawning:lesser_root

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.

1 participant