| #include "arch.h" |
| #include "fp_F384PM.h" |
| |
| namespace F384PM { |
| |
| /* NUMS 384-bit modulus */ |
| |
| |
| #if CHUNK==16 |
| |
| #error Not supported |
| |
| #endif |
| |
| #if CHUNK==32 |
| |
| using namespace B384_29; |
| |
| // Base Bits= 29 |
| const BIG Modulus= {0x1FFFFEC3,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x7F}; |
| const BIG R2modp= {0x0,0x4448000,0x6,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}; |
| const chunk MConst= 0x13D; |
| #endif |
| |
| #if CHUNK==64 |
| |
| using namespace B384_56; |
| |
| // Base Bits= 56 |
| const BIG Modulus= {0xFFFFFFFFFFFEC3L,0xFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFL}; |
| const BIG R2modp= {0x188890000L,0x0L,0x0L,0x0L,0x0L,0x0L,0x0L}; |
| const chunk MConst= 0x13DL; |
| #endif |
| |
| } |