#include #include #include "fr.h" int main() { FrElement a = { 0, Fr_LONGMONTGOMERY, {1,1,1,1}}; FrElement b = { 0, Fr_LONGMONTGOMERY, {2,2,2,2}}; /* FrElement a={0x43e1f593f0000000ULL,0x2833e84879b97091ULL,0xb85045b68181585dULL,0x30644e72e131a029ULL}; FrElement b = {3,0,0,0}; FrElement c; */ // Fr_add(&(c[0]), a, a); // Fr_add(&(c[0]), c, b); /* for (int i=0; i<1000000000; i++) { Fr_mul(&c, &a, &b); } Fr_mul(&c,&a, &b); */ FrElement a1[10]; FrElement a2[10]; for (int i=0; i<10; i++) { a1[i].type = Fr_LONGMONTGOMERY; a1[i].shortVal =0; for (int j=0; j