Correct math typos in field_*.h

This commit is contained in:
Russell O'Connor
2018-07-06 07:53:32 -04:00
parent 4efb3f8dd1
commit deff5edd42
4 changed files with 10 additions and 4 deletions

View File

@@ -10,7 +10,9 @@
#include <stdint.h>
typedef struct {
/* X = sum(i=0..9, elem[i]*2^26) mod n */
/* X = sum(i=0..9, n[i]*2^(i*26)) mod p
* where p = 2^256 - 0x1000003D1
*/
uint32_t n[10];
#ifdef VERIFY
int magnitude;