diff options
author | 2017-11-03 12:29:11 -0400 | |
---|---|---|
committer | 2017-11-03 12:29:11 -0400 | |
commit | 873a4d67276a075cb09c8745283bbb81205e58b9 (patch) | |
tree | 8ce139001451f7cb74e4b039b6643881c9cd46b7 /src/Specific/Framework | |
parent | e18f56add80534fba83a009990eab3917a25b834 (diff) |
Fix a re#definition
Diffstat (limited to 'src/Specific/Framework')
-rw-r--r-- | src/Specific/Framework/bench/gmpvar.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Specific/Framework/bench/gmpvar.c b/src/Specific/Framework/bench/gmpvar.c index 3c79d4212..213d31862 100644 --- a/src/Specific/Framework/bench/gmpvar.c +++ b/src/Specific/Framework/bench/gmpvar.c @@ -12,6 +12,10 @@ #define a_minus_two_over_four_array {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xdb,0x41} #endif +#ifdef modulus_limbs +#undef modulus_limbs // We currently recompute this; TODO(andreser): is this the right thing to do? +#endif + static const unsigned char modulus[] = modulus_array; static const unsigned char a_minus_two_over_four[] = a_minus_two_over_four_array; #define modulus_bytes (sizeof(modulus)) @@ -217,7 +221,7 @@ int main() { uint8_t point[modulus_bytes]; for (int i = 0; i < modulus_bytes; i++) { point[modulus_bytes-i] = i; } - + for (int i = 0; i < 1000; i++) { for (int j = 0; j<modulus_bytes; j++) { secret[j%32] ^= point[j]; |