blob: 097dcec6a2860e07b3a1d97092fbc1e2b387843d [file] [log] [blame]
#include "arch.h"
#include "fp_HIFIVE.h"
/* Curve HIFIVE */
#if CHUNK==16
#error Not supported
#endif
#if CHUNK==32
// Base Bits= 29
const BIG_336_29 Modulus_HIFIVE= {0x1FFFFFFD,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFF};
const BIG_336_29 R2modp_HIFIVE= {0x9000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0};
const chunk MConst_HIFIVE= 0x3;
#endif
#if CHUNK==64
// Base Bits= 60
const BIG_336_60 Modulus_HIFIVE= {0xFFFFFFFFFFFFFFDL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFL};
const BIG_336_60 R2modp_HIFIVE= {0x9000000000000L,0x0L,0x0L,0x0L,0x0L,0x0L};
const chunk MConst_HIFIVE= 0x3L;
#endif