2013-05-09 09:24:32 -04:00
|
|
|
// Copyright (c) 2013 Pieter Wuille
|
|
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2013-04-04 21:09:37 -03:00
|
|
|
#ifndef _SECP256K1_NUM_REPR_
|
|
|
|
#define _SECP256K1_NUM_REPR_
|
2013-03-10 17:25:19 -03:00
|
|
|
|
|
|
|
#include <gmp.h>
|
|
|
|
|
2013-04-13 12:15:17 -03:00
|
|
|
#define NUM_LIMBS ((256+GMP_NUMB_BITS-1)/GMP_NUMB_BITS)
|
|
|
|
|
2013-03-24 06:38:35 -03:00
|
|
|
typedef struct {
|
2013-04-13 12:15:17 -03:00
|
|
|
mp_limb_t data[2*NUM_LIMBS];
|
|
|
|
int neg;
|
|
|
|
int limbs;
|
2013-03-24 06:38:35 -03:00
|
|
|
} secp256k1_num_t;
|
2013-03-10 17:25:19 -03:00
|
|
|
|
|
|
|
#endif
|