|
43 | 43 | #if defined(EXHAUSTIVE_TEST_ORDER)
|
44 | 44 | # if EXHAUSTIVE_TEST_ORDER == 13
|
45 | 45 | static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G_ORDER_13;
|
46 |
| - |
47 |
| -static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST( |
48 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000000, |
49 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000002 |
50 |
| -); |
| 46 | +#define SECP256K1_B 2U |
51 | 47 | # elif EXHAUSTIVE_TEST_ORDER == 199
|
52 | 48 | static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G_ORDER_199;
|
53 |
| - |
54 |
| -static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST( |
55 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000000, |
56 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000004 |
57 |
| -); |
| 49 | +#define SECP256K1_B 4U |
58 | 50 | # else
|
59 | 51 | # error No known generator for the specified exhaustive test group order.
|
60 | 52 | # endif
|
61 | 53 | #else
|
62 | 54 | static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G;
|
63 |
| - |
64 |
| -static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST( |
65 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000000, |
66 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000007 |
67 |
| -); |
| 55 | +#define SECP256K1_B 7U |
68 | 56 | #endif
|
69 | 57 |
|
| 58 | +static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, SECP256K1_B); |
| 59 | + |
70 | 60 | static void secp256k1_ge_set_gej_zinv(secp256k1_ge *r, const secp256k1_gej *a, const secp256k1_fe *zi) {
|
71 | 61 | secp256k1_fe zi2;
|
72 | 62 | secp256k1_fe zi3;
|
|
0 commit comments