From 6b06f67d70883bbf9a5f07ffe895993b9337709d Mon Sep 17 00:00:00 2001 From: benma Date: Tue, 22 Dec 2015 12:10:23 +0100 Subject: [PATCH] Document all exponents in the FieldElement repr Part of https://github.com/agl/ed25519/issues/14. --- edwards25519/edwards25519.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edwards25519/edwards25519.go b/edwards25519/edwards25519.go index 9079818..d67ca71 100644 --- a/edwards25519/edwards25519.go +++ b/edwards25519/edwards25519.go @@ -10,10 +10,10 @@ package edwards25519 // This code is a port of the public domain, "ref10" implementation of ed25519 // from SUPERCOP. -// FieldElement represents an element of the field GF(2^255 - 19). An element +// FieldElement represents an element of the field GF(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. +// t[3]+2^102 t[4]+2^128 t[5]+2^153 t[6]+2^179 t[7]+2^204 t[8]+2^230 t[9]. +// Bounds on each t[i] vary depending on context. type FieldElement [10]int32 var zero FieldElement