10x26 field implementation

This commit is contained in:
Pieter Wuille
2013-04-02 00:10:14 +02:00
parent da09a2d426
commit 3231676bf9
7 changed files with 510 additions and 5 deletions

15
src/field_10x26.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef _SECP256K1_FIELD_10x26_
#define _SECP256K1_FIELD_10x26_
#include <stdint.h>
typedef struct {
// X = sum(i=0..9, elem[i]*2^26) mod n
uint32_t n[10];
#ifdef VERIFY
int magnitude;
int normalized;
#endif
} secp256k1_fe_t;
#endif