File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,16 @@ fn main() {
3636 . define ( "ENABLE_MODULE_ECDH" , Some ( "1" ) )
3737 . define ( "ENABLE_MODULE_SCHNORRSIG" , Some ( "1" ) )
3838 . define ( "ENABLE_MODULE_EXTRAKEYS" , Some ( "1" ) )
39- . define ( "ECMULT_GEN_PREC_BITS" , Some ( "4" ) )
4039 // TODO these three should be changed to use libgmp, at least until secp PR 290 is merged
4140 . define ( "USE_NUM_NONE" , Some ( "1" ) )
4241 . define ( "USE_FIELD_INV_BUILTIN" , Some ( "1" ) )
4342 . define ( "USE_SCALAR_INV_BUILTIN" , Some ( "1" ) ) ;
4443
4544 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" ) ) ;
4747 } else {
48+ base_config. define ( "ECMULT_GEN_PREC_BITS" , Some ( "4" ) ) ;
4849 base_config. define ( "ECMULT_WINDOW_SIZE" , Some ( "15" ) ) ; // This is the default in the configure file (`auto`)
4950 }
5051 base_config. define ( "USE_EXTERNAL_DEFAULT_CALLBACKS" , Some ( "1" ) ) ;
You can’t perform that action at this time.
0 commit comments