Skip to content

Commit

Permalink
Add a comment where coordinates are expected to be normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Nov 8, 2023
1 parent faa9bc6 commit 420356c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsodium/crypto_sign/ed25519/ref10/keypair.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ crypto_sign_ed25519_pk_to_curve25519(unsigned char *curve25519_pk,
return -1;
}
fe25519_1(one_minus_y);
/* assumes A.Z=1 */
fe25519_sub(one_minus_y, one_minus_y, A.Y);
fe25519_1(x);
fe25519_add(x, x, A.Y);
Expand Down

0 comments on commit 420356c

Please sign in to comment.