@@ -170,6 +170,11 @@ AC_ARG_ENABLE(module_schnorrsig,
170170 AS_HELP_STRING ( [ --enable-module-schnorrsig] ,[ enable schnorrsig module [ default=no] ] ) , [ ] ,
171171 [ SECP_SET_DEFAULT([ enable_module_schnorrsig] , [ no] , [ yes] )] )
172172
173+ AC_ARG_ENABLE ( module_ellswift ,
174+ AS_HELP_STRING ( [ --enable-module-ellswift] ,[ enable ElligatorSwift module (experimental)] ) ,
175+ [ enable_module_ellswift=$enableval] ,
176+ [ enable_module_ellswift=no] )
177+
173178AC_ARG_ENABLE ( external_default_callbacks ,
174179 AS_HELP_STRING ( [ --enable-external-default-callbacks] ,[ enable external default callback functions [ default=no] ] ) , [ ] ,
175180 [ SECP_SET_DEFAULT([ enable_external_default_callbacks] , [ no] , [ no] )] )
@@ -362,6 +367,10 @@ if test x"$enable_module_schnorrsig" = x"yes"; then
362367 enable_module_extrakeys=yes
363368fi
364369
370+ if test x"$enable_module_ellswift" = x"yes"; then
371+ AC_DEFINE ( ENABLE_MODULE_ELLSWIFT , 1 , [ Define this symbol to enable the ElligatorSwift module] )
372+ fi
373+
365374# Test if extrakeys is set after the schnorrsig module to allow the schnorrsig
366375# module to set enable_module_extrakeys=yes
367376if test x"$enable_module_extrakeys" = x"yes"; then
@@ -407,6 +416,7 @@ AM_CONDITIONAL([ENABLE_MODULE_ECDH], [test x"$enable_module_ecdh" = x"yes"])
407416AM_CONDITIONAL([ ENABLE_MODULE_RECOVERY] , [ test x"$enable_module_recovery" = x"yes"] )
408417AM_CONDITIONAL([ ENABLE_MODULE_EXTRAKEYS] , [ test x"$enable_module_extrakeys" = x"yes"] )
409418AM_CONDITIONAL([ ENABLE_MODULE_SCHNORRSIG] , [ test x"$enable_module_schnorrsig" = x"yes"] )
419+ AM_CONDITIONAL([ ENABLE_MODULE_ELLSWIFT] , [ test x"$enable_module_ellswift" = x"yes"] )
410420AM_CONDITIONAL([ USE_EXTERNAL_ASM] , [ test x"$enable_external_asm" = x"yes"] )
411421AM_CONDITIONAL([ USE_ASM_ARM] , [ test x"$set_asm" = x"arm"] )
412422AM_CONDITIONAL([ BUILD_WINDOWS] , [ test "$build_windows" = "yes"] )
@@ -427,6 +437,7 @@ echo " module ecdh = $enable_module_ecdh"
427437echo " module recovery = $enable_module_recovery"
428438echo " module extrakeys = $enable_module_extrakeys"
429439echo " module schnorrsig = $enable_module_schnorrsig"
440+ echo " module ellswift = $enable_module_ellswift"
430441echo
431442echo " asm = $set_asm"
432443echo " ecmult window size = $set_ecmult_window"
0 commit comments