From 1e57b1d4556208f4d64023e7fe2eceb9f49d691d Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 6 Nov 2017 11:10:29 +0100 Subject: [PATCH] Update comment --- .../include/sodium/private/curve25519_ref10.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/libsodium/include/sodium/private/curve25519_ref10.h b/src/libsodium/include/sodium/private/curve25519_ref10.h index 50229186..133829a5 100644 --- a/src/libsodium/include/sodium/private/curve25519_ref10.h +++ b/src/libsodium/include/sodium/private/curve25519_ref10.h @@ -4,6 +4,11 @@ #include #include +/* + fe means field element. + Here the field is \Z/(2^255-19). + */ + #define fe crypto_core_curve25519_ref10_fe #ifdef HAVE_TI_MODE typedef uint64_t fe[5]; @@ -11,14 +16,6 @@ typedef uint64_t fe[5]; typedef int32_t fe[10]; #endif -/* - fe means field element. - Here the field is \Z/(2^255-19). - An element t, entries t[0]...t[9], represents the integer - t[0]+2^26 t[1]+2^51 t[2]+2^77 t[3]+2^102 t[4]+...+2^230 t[9]. - Bounds on each t[i] vary depending on context. - */ - #define fe_frombytes crypto_core_curve25519_ref10_fe_frombytes #define fe_tobytes crypto_core_curve25519_ref10_fe_tobytes #define fe_copy crypto_core_curve25519_ref10_fe_copy