From 82831cb7a6f60a5cfcce417dafe28c522d88571b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 22 Dec 2015 12:19:32 +0100 Subject: [PATCH] Document constants --- src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c b/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c index 081ebf4d..59bbf7fa 100644 --- a/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c +++ b/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c @@ -1214,10 +1214,12 @@ static const ge_precomp Bi[8] = { #include "base2.h" }; +/* 37095705934669439343138083508754565189542113879843219016388785533085940283555 */ static const fe d = { -10913610,13857413,-15372611,6949391,114729,-8787816,-6275908,-3247719,-18696448,-12055116 }; +/* sqrt(-1) */ static const fe sqrtm1 = { -32595792,-7943725,9377950,3500415,12389472,-272473,-25146209,-2005654,326686,11406482 }; @@ -1364,6 +1366,7 @@ void ge_p3_0(ge_p3 *h) r = p */ +/* 2 * d = 16295367250680780974490674513165176452449235426866156013048779062215315747161 */ static const fe d2 = { -21827239,-5839606,-30745221,13898782,229458,15978800,-12551817,-6495438,29715968,9444199 };