From 6ee5a7345296a0a104fc3630bcea56e2f9f0f513 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 8 Nov 2023 07:37:12 +0100 Subject: [PATCH] Add a comment where coordinates are expected to be normalized --- src/libsodium/crypto_sign/ed25519/ref10/keypair.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsodium/crypto_sign/ed25519/ref10/keypair.c b/src/libsodium/crypto_sign/ed25519/ref10/keypair.c index c8273a03..b43573a2 100644 --- a/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +++ b/src/libsodium/crypto_sign/ed25519/ref10/keypair.c @@ -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);