2014-11-15 15:28:10 +00:00
|
|
|
/**********************************************************************
|
|
|
|
* Copyright (c) 2013, 2014 Pieter Wuille *
|
|
|
|
* Distributed under the MIT software license, see the accompanying *
|
|
|
|
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
|
|
|
|
**********************************************************************/
|
2013-05-09 15:24:32 +02:00
|
|
|
|
2013-04-05 02:09:37 +02:00
|
|
|
#ifndef _SECP256K1_FIELD_REPR_
|
|
|
|
#define _SECP256K1_FIELD_REPR_
|
2013-04-02 00:10:14 +02:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
typedef struct {
|
2014-11-15 15:28:10 +00:00
|
|
|
/* X = sum(i=0..9, elem[i]*2^26) mod n */
|
2013-04-02 00:10:14 +02:00
|
|
|
uint32_t n[10];
|
|
|
|
#ifdef VERIFY
|
|
|
|
int magnitude;
|
|
|
|
int normalized;
|
|
|
|
#endif
|
|
|
|
} secp256k1_fe_t;
|
|
|
|
|
|
|
|
#endif
|