Skip to content

Commit 7ff4ada

Browse files
authored
Merge pull request #8746 from douzzer/20250507-ed25519-noasm
20250507-ed25519-noasm
2 parents 1881841 + e044ec4 commit 7ff4ada

File tree

2 files changed

+28
-26
lines changed

2 files changed

+28
-26
lines changed

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
# The exclude_file contains lines of code that should be ignored. This is useful for individual lines which have non-words that can safely be ignored.
2828
exclude_file: '.codespellexcludelines'
2929
# To skip files entirely from being processed, add it to the following list:
30-
skip: '*.cproject,*.der,*.mtpj,*.pem,*.vcxproj,.git,*.launch,*.scfg,*.revoked,dumpasn1.cfg,oid_names.h'
30+
skip: '*.cproject,*.der,*.mtpj,*.pem,*.vcxproj,.git,*.launch,*.scfg,*.revoked,./examples/asn1/dumpasn1.cfg,./examples/asn1/oid_names.h'

configure.ac

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4442,12 +4442,12 @@ AC_ARG_ENABLE([curve25519],
44424442
[ ENABLED_CURVE25519=no ]
44434443
)
44444444

4445-
if test "$ENABLED_QUIC" = "yes" && test "$ENABLED_CURVE25519" = "no" && test "$ENABLED_FIPS" = "no"
4445+
if test "$ENABLED_CURVE25519" = "no" && test "$ENABLED_QUIC" = "yes" && test "$ENABLED_FIPS" = "no"
44464446
then
44474447
ENABLED_CURVE25519=yes
44484448
fi
44494449

4450-
if test "$ENABLED_OPENSSH" = "yes" && test "x$ENABLED_FIPS" = "xno"
4450+
if test "$ENABLED_CURVE25519" = "no" && test "$ENABLED_OPENSSH" = "yes" && test "x$ENABLED_FIPS" = "xno"
44514451
then
44524452
ENABLED_CURVE25519="yes"
44534453
fi
@@ -4464,18 +4464,6 @@ then
44644464
if test "$ENABLED_CURVE25519" = "no128bit" || test "$ENABLED_32BIT" = "yes"
44654465
then
44664466
AM_CFLAGS="$AM_CFLAGS -DNO_CURVED25519_128BIT"
4467-
ENABLED_CURVE25519=yes
4468-
fi
4469-
4470-
if test "$ENABLED_CURVE25519" = "noasm"
4471-
then
4472-
AM_CFLAGS="$AM_CFLAGS -DNO_CURVED25519_X64"
4473-
fi
4474-
4475-
if test "$ENABLED_CURVE25519" = "yes" && test "$ENABLED_LINUXKM_DEFAULTS" = "yes"
4476-
then
4477-
ENABLED_CURVE25519=noasm
4478-
AM_CFLAGS="$AM_CFLAGS -DNO_CURVED25519_X64"
44794467
fi
44804468

44814469
AM_CFLAGS="$AM_CFLAGS -DHAVE_CURVE25519"
@@ -4496,9 +4484,9 @@ AC_ARG_ENABLE([ed25519-stream],
44964484
[ ENABLED_ED25519_STREAM=no ]
44974485
)
44984486

4499-
4500-
if (test "$ENABLED_OPENSSH" = "yes" && test "x$ENABLED_FIPS" = "xno") || \
4501-
test "$ENABLED_CHRONY" = "yes"
4487+
if test "$ENABLED_ED25519" = "no" && \
4488+
( (test "$ENABLED_OPENSSH" = "yes" && test "x$ENABLED_FIPS" = "xno") || \
4489+
test "$ENABLED_CHRONY" = "yes")
45024490
then
45034491
ENABLED_ED25519="yes"
45044492
fi
@@ -5624,7 +5612,7 @@ AS_CASE([$FIPS_VERSION],
56245612
AS_IF([test "$ENABLED_ECC_SHAMIR" = "yes"],
56255613
[AM_CFLAGS="$AM_CFLAGS -DECC_SHAMIR"])])
56265614
5627-
AS_IF([test "x$ENABLED_ED25519" != "xyes" &&
5615+
AS_IF([test "$ENABLED_ED25519" = "no" &&
56285616
(test "$FIPS_VERSION" != "dev" || test "$enable_ed25519" != "no")],
56295617
[ENABLED_ED25519="yes"; AM_CFLAGS="$AM_CFLAGS -DHAVE_ED25519 -DHAVE_ED25519_KEY_IMPORT"])
56305618
@@ -9811,6 +9799,21 @@ then
98119799
ENABLED_OPENSSLEXTRA="yes"
98129800
fi
98139801
9802+
if test "$ENABLED_CURVE25519" != "no" && test "$ENABLED_LINUXKM_DEFAULTS" = "yes"
9803+
then
9804+
ENABLED_CURVE25519=noasm
9805+
fi
9806+
9807+
if test "$ENABLED_ED25519" != "no" && test "$ENABLED_LINUXKM_DEFAULTS" = "yes"
9808+
then
9809+
ENABLED_ED25519=noasm
9810+
fi
9811+
9812+
if test "$ENABLED_CURVE25519" = "noasm" || test "$ENABLED_ED25519" = "noasm"
9813+
then
9814+
AM_CFLAGS="$AM_CFLAGS -DNO_CURVED25519_X64"
9815+
fi
9816+
98149817
if test "$ENABLED_ED25519" != "no"
98159818
then
98169819
if test "$ENABLED_ED25519" = "small" || test "$ENABLED_LOWRESOURCE" = "yes"
@@ -9919,7 +9922,7 @@ AS_IF([test "x$ENABLED_CERT_REQ" = "xyes" && \
99199922
[AC_MSG_ERROR([cannot use certreq without certgen.])])
99209923
99219924
# ed25519 requires sha512
9922-
AS_IF([test "x$ENABLED_ED25519" = "xyes" && \
9925+
AS_IF([test "$ENABLED_ED25519" != "no" && \
99239926
test "x$ENABLED_SHA512" = "xno" && \
99249927
test "x$ENABLED_32BIT" = "xno"],
99259928
[AC_MSG_ERROR([cannot enable ed25519 without enabling sha512.])])
@@ -9985,10 +9988,9 @@ AS_IF([test "x$ENABLED_CERTGEN" = "xyes"],
99859988
AS_IF([test "x$ENABLED_CERTEXT" = "xyes"],
99869989
[AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_EXT"])
99879990
9988-
AS_IF([test "x$ENABLED_ED25519" = "xyes"],
9989-
[AM_CFLAGS="$AM_CFLAGS -DHAVE_ED25519"])
9990-
AS_IF([test "x$ENABLED_ED25519" = "xyes"],
9991-
[AM_CCASFLAGS="$AM_CCASFLAGS -DHAVE_ED25519"])
9991+
AS_IF([test "$ENABLED_ED25519" != "no"],
9992+
[AM_CFLAGS="$AM_CFLAGS -DHAVE_ED25519"
9993+
AM_CCASFLAGS="$AM_CCASFLAGS -DHAVE_ED25519"])
99929994
99939995
AS_IF([test "x$ENABLED_ED25519_SMALL" = "xyes"],
99949996
[AM_CFLAGS="$AM_CFLAGS -DED25519_SMALL"])
@@ -10522,12 +10524,12 @@ AM_CONDITIONAL([BUILD_BLAKE2S],[test "x$ENABLED_BLAKE2S" = "xyes" || test "x$ENA
1052210524
AM_CONDITIONAL([BUILD_SHA512],[test "x$ENABLED_SHA512" = "xyes" || test "x$ENABLED_SHA384" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"])
1052310525
AM_CONDITIONAL([BUILD_DSA],[test "x$ENABLED_DSA" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"])
1052410526
AM_CONDITIONAL([BUILD_ECC],[test "x$ENABLED_ECC" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"])
10525-
AM_CONDITIONAL([BUILD_ED25519],[test "x$ENABLED_ED25519" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"])
10527+
AM_CONDITIONAL([BUILD_ED25519],[test "$ENABLED_ED25519" != "no" || test "x$ENABLED_USERSETTINGS" = "xyes"])
1052610528
AM_CONDITIONAL([BUILD_ED25519_SMALL],[test "x$ENABLED_ED25519_SMALL" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"])
1052710529
AM_CONDITIONAL([BUILD_FEMATH], [test "x$ENABLED_FEMATH" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"])
1052810530
AM_CONDITIONAL([BUILD_GEMATH], [test "x$ENABLED_GEMATH" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"])
1052910531
AM_CONDITIONAL([BUILD_CURVE25519],[test "$ENABLED_CURVE25519" != "no" || test "x$ENABLED_USERSETTINGS" = "xyes"])
10530-
AM_CONDITIONAL([BUILD_CURVE25519_INTELASM],[test "$ENABLED_CURVE25519" != "noasm" && test "$ENABLED_INTELASM" = "yes"])
10532+
AM_CONDITIONAL([BUILD_CURVE25519_INTELASM],[test "$ENABLED_CURVE25519" != "noasm" && test "$ENABLED_ED25519" != "noasm" && test "$ENABLED_INTELASM" = "yes"])
1053110533
AM_CONDITIONAL([BUILD_CURVE25519_SMALL],[test "x$ENABLED_CURVE25519_SMALL" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"])
1053210534
AM_CONDITIONAL([BUILD_ED448],[test "x$ENABLED_ED448" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"])
1053310535
AM_CONDITIONAL([BUILD_ED448_SMALL],[test "x$ENABLED_ED448_SMALL" = "xyes"])

0 commit comments

Comments
 (0)