|
42 | 42 | #if defined(EXHAUSTIVE_TEST_ORDER)
|
43 | 43 | # if EXHAUSTIVE_TEST_ORDER == 13
|
44 | 44 | static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G_ORDER_13;
|
45 |
| - |
46 |
| -static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST( |
47 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000000, |
48 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000002 |
49 |
| -); |
| 45 | +# define SECP256K1_B 2 |
50 | 46 | # elif EXHAUSTIVE_TEST_ORDER == 199
|
51 | 47 | static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G_ORDER_199;
|
52 |
| - |
53 |
| -static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST( |
54 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000000, |
55 |
| - 0x00000000, 0x00000000, 0x00000000, 0x00000004 |
56 |
| -); |
| 48 | +# define SECP256K1_B 4 |
57 | 49 | # else
|
58 | 50 | # error No known generator for the specified exhaustive test group order.
|
59 | 51 | # endif
|
60 | 52 | #else
|
61 | 53 |
|
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 7 |
68 | 56 |
|
69 | 57 | #endif
|
70 | 58 | /* End of section generated by sage/gen_exhaustive_groups.size. */
|
71 | 59 |
|
| 60 | +static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, SECP256K1_B); |
| 61 | + |
72 | 62 | static void secp256k1_ge_set_gej_zinv(secp256k1_ge *r, const secp256k1_gej *a, const secp256k1_fe *zi) {
|
73 | 63 | secp256k1_fe zi2;
|
74 | 64 | secp256k1_fe zi3;
|
|
0 commit comments