Merge bitcoin-core/secp256k1#1564: build, ci: Adjust the default size of the precomputed table for signing
e2af491263ci: Switch to the new default value of the precomputed table for signing (Hennadii Stepanov)d94a9273f8build: Adjust the default size of the precomputed table for signing (Hennadii Stepanov) Pull request description: This PR implements the [outcomes](https://github.com/bitcoin-core/secp256k1/issues/1549#issuecomment-2200559257) from today's IRC meeting: 1. The default size of the precomputed table for signing is now aligned with Bitcoin Core's [default](a057869aa3). 2. The default value in CI has been updated to reflect the new default. ACKs for top commit: sipa: utACKe2af491263real-or-random: utACKe2af491263Tree-SHA512: aa9db5bc2aec29a35a503a80617a4c096e9909648084fe1ce43b5dd7e74dd812e7642305bd5bc13eb581efc23f12904e200e13cb1a35955b773e05ab4f84be4e
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -22,7 +22,7 @@ env:
|
|||||||
BUILD: 'check'
|
BUILD: 'check'
|
||||||
### secp256k1 config
|
### secp256k1 config
|
||||||
ECMULTWINDOW: 15
|
ECMULTWINDOW: 15
|
||||||
ECMULTGENKB: 22
|
ECMULTGENKB: 86
|
||||||
ASM: 'no'
|
ASM: 'no'
|
||||||
WIDEMUL: 'auto'
|
WIDEMUL: 'auto'
|
||||||
WITH_VALGRIND: 'yes'
|
WITH_VALGRIND: 'yes'
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ include(CheckStringOptionValue)
|
|||||||
check_string_option_value(SECP256K1_ECMULT_WINDOW_SIZE)
|
check_string_option_value(SECP256K1_ECMULT_WINDOW_SIZE)
|
||||||
add_compile_definitions(ECMULT_WINDOW_SIZE=${SECP256K1_ECMULT_WINDOW_SIZE})
|
add_compile_definitions(ECMULT_WINDOW_SIZE=${SECP256K1_ECMULT_WINDOW_SIZE})
|
||||||
|
|
||||||
set(SECP256K1_ECMULT_GEN_KB 22 CACHE STRING "The size of the precomputed table for signing in multiples of 1024 bytes (on typical platforms). Larger values result in possibly better signing or key generation performance at the cost of a larger table. Valid choices are 2, 22, 86. The default value is a reasonable setting for desktop machines (currently 22). [default=22]")
|
set(SECP256K1_ECMULT_GEN_KB 86 CACHE STRING "The size of the precomputed table for signing in multiples of 1024 bytes (on typical platforms). Larger values result in possibly better signing or key generation performance at the cost of a larger table. Valid choices are 2, 22, 86. The default value is a reasonable setting for desktop machines (currently 86). [default=86]")
|
||||||
set_property(CACHE SECP256K1_ECMULT_GEN_KB PROPERTY STRINGS 2 22 86)
|
set_property(CACHE SECP256K1_ECMULT_GEN_KB PROPERTY STRINGS 2 22 86)
|
||||||
check_string_option_value(SECP256K1_ECMULT_GEN_KB)
|
check_string_option_value(SECP256K1_ECMULT_GEN_KB)
|
||||||
if(SECP256K1_ECMULT_GEN_KB EQUAL 2)
|
if(SECP256K1_ECMULT_GEN_KB EQUAL 2)
|
||||||
|
|||||||
@@ -216,9 +216,9 @@ AC_ARG_WITH([ecmult-window], [AS_HELP_STRING([--with-ecmult-window=SIZE],
|
|||||||
AC_ARG_WITH([ecmult-gen-kb], [AS_HELP_STRING([--with-ecmult-gen-kb=2|22|86],
|
AC_ARG_WITH([ecmult-gen-kb], [AS_HELP_STRING([--with-ecmult-gen-kb=2|22|86],
|
||||||
[The size of the precomputed table for signing in multiples of 1024 bytes (on typical platforms).]
|
[The size of the precomputed table for signing in multiples of 1024 bytes (on typical platforms).]
|
||||||
[Larger values result in possibly better signing/keygeneration performance at the cost of a larger table.]
|
[Larger values result in possibly better signing/keygeneration performance at the cost of a larger table.]
|
||||||
[The default value is a reasonable setting for desktop machines (currently 22). [default=22]]
|
[The default value is a reasonable setting for desktop machines (currently 86). [default=86]]
|
||||||
)],
|
)],
|
||||||
[set_ecmult_gen_kb=$withval], [set_ecmult_gen_kb=22])
|
[set_ecmult_gen_kb=$withval], [set_ecmult_gen_kb=86])
|
||||||
|
|
||||||
AC_ARG_WITH([valgrind], [AS_HELP_STRING([--with-valgrind=yes|no|auto],
|
AC_ARG_WITH([valgrind], [AS_HELP_STRING([--with-valgrind=yes|no|auto],
|
||||||
[Build with extra checks for running inside Valgrind [default=auto]]
|
[Build with extra checks for running inside Valgrind [default=auto]]
|
||||||
|
|||||||
Reference in New Issue
Block a user