-
-#ifdef TESTMODE
-
-#ifndef NODDY
-#define p1 10007
-#define p2 10069
-#define p3 10177
-#else
-#define p1 3
-#define p2 7
-#define p3 13
-#endif
-
-unsigned short P1[2] = { 1, p1 };
-unsigned short P2[2] = { 1, p2 };
-unsigned short P3[2] = { 1, p3 };
-unsigned short bigmod[5] = { 4, 0, 0, 0, 32768U };
-unsigned short mod[5] = { 4, 0, 0, 0, 0 };
-unsigned short a[5] = { 4, 0, 0, 0, 0 };
-unsigned short b[5] = { 4, 0, 0, 0, 0 };
-unsigned short c[5] = { 4, 0, 0, 0, 0 };
-unsigned short One[2] = { 1, 1 };
-unsigned short Two[2] = { 1, 2 };
-
-int main(void) {
- modmult(P1, P2, bigmod, a); debug(a);
- modmult(a, P3, bigmod, mod); debug(mod);
-
- sub(P1, One, a); debug(a);
- sub(P2, One, b); debug(b);
- modmult(a, b, bigmod, c); debug(c);
- sub(P3, One, a); debug(a);
- modmult(a, c, bigmod, b); debug(b);
-
- modpow(Two, b, mod, a); debug(a);
-
- return 0;
-}
-
-#endif