|
49 | 49 | # if EXHAUSTIVE_TEST_ORDER == 7
|
50 | 50 |
|
51 | 51 | static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G_ORDER_7;
|
52 |
| - |
53 |
| -static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST( |
54 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000000, |
55 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000006 |
56 |
| -); |
| 52 | +#define SECP256K1_B 6 |
57 | 53 |
|
58 | 54 | # elif EXHAUSTIVE_TEST_ORDER == 13
|
59 | 55 |
|
60 | 56 | static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G_ORDER_13;
|
61 |
| - |
62 |
| -static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST( |
63 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000000, |
64 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000002 |
65 |
| -); |
| 57 | +#define SECP256K1_B 2 |
66 | 58 |
|
67 | 59 | # elif EXHAUSTIVE_TEST_ORDER == 199
|
68 | 60 |
|
69 | 61 | static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G_ORDER_199;
|
70 |
| - |
71 |
| -static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST( |
72 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000000, |
73 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000004 |
74 |
| -); |
| 62 | +#define SECP256K1_B 4 |
75 | 63 |
|
76 | 64 | # else
|
77 | 65 | # error No known generator for the specified exhaustive test group order.
|
78 | 66 | # endif
|
79 | 67 | #else
|
80 | 68 |
|
81 | 69 | static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G;
|
82 |
| - |
83 |
| -static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST( |
84 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000000, |
85 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000007 |
86 |
| -); |
| 70 | +#define SECP256K1_B 7 |
87 | 71 |
|
88 | 72 | #endif
|
89 | 73 | /* End of section generated by sage/gen_exhaustive_groups.sage. */
|
90 | 74 |
|
| 75 | +static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, SECP256K1_B); |
| 76 | + |
91 | 77 | static void secp256k1_ge_set_gej_zinv(secp256k1_ge *r, const secp256k1_gej *a, const secp256k1_fe *zi) {
|
92 | 78 | secp256k1_fe zi2;
|
93 | 79 | secp256k1_fe zi3;
|
|
0 commit comments