File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,16 @@ fn main() {
36
36
. define ( "ENABLE_MODULE_ECDH" , Some ( "1" ) )
37
37
. define ( "ENABLE_MODULE_SCHNORRSIG" , Some ( "1" ) )
38
38
. define ( "ENABLE_MODULE_EXTRAKEYS" , Some ( "1" ) )
39
- . define ( "ECMULT_GEN_PREC_BITS" , Some ( "4" ) )
40
39
// TODO these three should be changed to use libgmp, at least until secp PR 290 is merged
41
40
. define ( "USE_NUM_NONE" , Some ( "1" ) )
42
41
. define ( "USE_FIELD_INV_BUILTIN" , Some ( "1" ) )
43
42
. define ( "USE_SCALAR_INV_BUILTIN" , Some ( "1" ) ) ;
44
43
45
44
if cfg ! ( feature = "lowmemory" ) {
46
- base_config. define ( "ECMULT_WINDOW_SIZE" , Some ( "4" ) ) ; // A low-enough value to consume neglible memory
45
+ base_config. define ( "ECMULT_WINDOW_SIZE" , Some ( "4" ) ) ; // A low-enough value to consume negligible memory
46
+ base_config. define ( "ECMULT_GEN_PREC_BITS" , Some ( "2" ) ) ;
47
47
} else {
48
+ base_config. define ( "ECMULT_GEN_PREC_BITS" , Some ( "4" ) ) ;
48
49
base_config. define ( "ECMULT_WINDOW_SIZE" , Some ( "15" ) ) ; // This is the default in the configure file (`auto`)
49
50
}
50
51
base_config. define ( "USE_EXTERNAL_DEFAULT_CALLBACKS" , Some ( "1" ) ) ;
You can’t perform that action at this time.
0 commit comments