2013-03-30 21:49:09 +01:00
|
|
|
#ifndef _SECP256K1_FIELD_5x52_
|
|
|
|
#define _SECP256K1_FIELD_5x52_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2013-03-31 03:46:01 +02:00
|
|
|
extern "C" {
|
|
|
|
|
2013-03-30 22:32:16 +01:00
|
|
|
typedef struct {
|
2013-03-30 21:49:09 +01:00
|
|
|
// X = sum(i=0..4, elem[i]*2^52) mod n
|
|
|
|
uint64_t n[5];
|
2013-03-30 22:32:16 +01:00
|
|
|
#ifdef VERIFY
|
2013-03-30 21:49:09 +01:00
|
|
|
int magnitude;
|
2013-03-30 22:32:16 +01:00
|
|
|
int normalized;
|
2013-03-30 21:49:09 +01:00
|
|
|
#endif
|
2013-03-30 22:32:16 +01:00
|
|
|
} secp256k1_fe_t;
|
2013-03-30 21:49:09 +01:00
|
|
|
|
2013-03-31 03:46:01 +02:00
|
|
|
}
|
|
|
|
|
2013-03-30 21:49:09 +01:00
|
|
|
#endif
|