|
720 | 720 | # this set is also enabled by enable-all-crypto: |
721 | 721 | test "$enable_atomicuser" = "" && enable_atomicuser=yes |
722 | 722 | test "$enable_aesgcm" = "" && enable_aesgcm=yes |
| 723 | + test "$enable_aesgcm_stream" = "" && test "$enable_aesgcm" = "yes" && enable_aesgcm_stream=yes |
723 | 724 | test "$enable_aesccm" = "" && enable_aesccm=yes |
724 | 725 | test "$enable_aesctr" = "" && enable_aesctr=yes |
725 | 726 | test "$enable_aeseax" = "" && enable_aeseax=yes |
|
745 | 746 | test "$enable_psk" = "" && enable_psk=yes |
746 | 747 | test "$enable_cmac" = "" && enable_cmac=yes |
747 | 748 | test "$enable_siphash" = "" && enable_siphash=yes |
748 | | - test "$enable_aesxts" = "" && enable_aesxts=yes |
749 | 749 | test "$enable_ocsp" = "" && enable_ocsp=yes |
750 | 750 | test "$enable_ocspstapling" = "" && test "$enable_ocsp" != "no" && enable_ocspstapling=yes |
751 | 751 | test "$enable_ocspstapling2" = "" && test "$enable_ocsp" != "no" && enable_ocspstapling2=yes |
|
787 | 787 | test "$enable_session_ticket" = "" && enable_session_ticket=yes |
788 | 788 | test "$enable_earlydata" = "" && enable_earlydata=yes |
789 | 789 | test "$enable_ech" = "" && enable_ech=yes |
| 790 | + test "$enable_srtp" = "" && enable_srtp=yes |
790 | 791 |
|
791 | 792 | if test "$ENABLED_32BIT" != "yes" |
792 | 793 | then |
|
796 | 797 |
|
797 | 798 | if test "$ENABLED_LINUXKM_DEFAULTS" != "yes" |
798 | 799 | then |
799 | | - test "$enable_aesgcm_stream" = "" && test "$enable_aesgcm" = "yes" && enable_aesgcm_stream=yes |
800 | 800 | test "$enable_compkey" = "" && enable_compkey=yes |
801 | 801 | test "$enable_quic" = "" && test "$enable_cryptonly" != "yes" && enable_quic=yes |
802 | 802 | AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_IO -DHAVE_IO_TIMEOUT" |
|
861 | 861 | fi |
862 | 862 | fi |
863 | 863 |
|
864 | | - if test "$ENABLED_FIPS" = "no" || test "$ENABLED_FIPS" = "dev"; then |
| 864 | + if test "$ENABLED_FIPS" = "no" || test "$FIPS_VERSION" = "dev"; then |
| 865 | + test "$enable_aesxts" = "" && enable_aesxts=yes |
865 | 866 | test "$enable_aessiv" = "" && enable_aessiv=yes |
866 | 867 | fi |
867 | 868 |
|
@@ -908,6 +909,7 @@ if test "$ENABLED_ALL_CRYPT" = "yes" |
908 | 909 | then |
909 | 910 | test "$enable_atomicuser" = "" && enable_atomicuser=yes |
910 | 911 | test "$enable_aesgcm" = "" && enable_aesgcm=yes |
| 912 | + test "$enable_aesgcm_stream" = "" && test "$enable_aesgcm" = "yes" && enable_aesgcm_stream=yes |
911 | 913 | test "$enable_aesccm" = "" && enable_aesccm=yes |
912 | 914 | test "$enable_aesctr" = "" && enable_aesctr=yes |
913 | 915 | test "$enable_aeseax" = "" && enable_aeseax=yes |
|
933 | 935 | test "$enable_psk" = "" && enable_psk=yes |
934 | 936 | test "$enable_cmac" = "" && enable_cmac=yes |
935 | 937 | test "$enable_siphash" = "" && enable_siphash=yes |
936 | | - test "$enable_aesxts" = "" && enable_aesxts=yes |
937 | 938 | test "$enable_ocsp" = "" && enable_ocsp=yes |
938 | 939 | test "$enable_ocspstapling" = "" && test "$enable_ocsp" != "no" && enable_ocspstapling=yes |
939 | 940 | test "$enable_ocspstapling2" = "" && test "$enable_ocsp" != "no" && enable_ocspstapling2=yes |
|
959 | 960 | test "$enable_cryptocb" = "" && enable_cryptocb=yes |
960 | 961 | test "$enable_anon" = "" && enable_anon=yes |
961 | 962 | test "$enable_ssh" = "" && test "$enable_hmac" != "no" && enable_ssh=yes |
| 963 | + test "$enable_srtp_kdf" = "" && enable_srtp_kdf=yes |
962 | 964 |
|
963 | 965 | if test "$ENABLED_32BIT" != "yes" |
964 | 966 | then |
|
968 | 970 |
|
969 | 971 | if test "$ENABLED_LINUXKM_DEFAULTS" != "yes" |
970 | 972 | then |
971 | | - test "$enable_aesgcm_stream" = "" && test "$enable_aesgcm" = "yes" && enable_aesgcm_stream=yes |
972 | 973 | test "$enable_compkey" = "" && enable_compkey=yes |
973 | 974 | fi |
974 | 975 |
|
@@ -1001,7 +1002,8 @@ then |
1001 | 1002 | fi |
1002 | 1003 | fi |
1003 | 1004 |
|
1004 | | - if test "$ENABLED_FIPS" = "no" || test "$ENABLED_FIPS" = "dev"; then |
| 1005 | + if test "$ENABLED_FIPS" = "no" || test "$FIPS_VERSION" = "dev"; then |
| 1006 | + test "$enable_aesxts" = "" && enable_aesxts=yes |
1005 | 1007 | test "$enable_aessiv" = "" && enable_aessiv=yes |
1006 | 1008 | fi |
1007 | 1009 |
|
@@ -4848,13 +4850,6 @@ AC_ARG_ENABLE([xts], |
4848 | 4850 | [ ENABLED_AESXTS=$enableval ] |
4849 | 4851 | ) |
4850 | 4852 |
|
4851 | | -AS_IF([test "x$ENABLED_AESXTS" = "xyes"], |
4852 | | - [AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AES_XTS -DWOLFSSL_AES_DIRECT"]) |
4853 | | -AS_IF([test "x$ENABLED_AESXTS" = "xyes" && test "x$ENABLED_INTELASM" = "xyes"], |
4854 | | - [AM_CCASFLAGS="$AM_CCASFLAGS -DWOLFSSL_AES_XTS"]) |
4855 | | -AS_IF([test "x$ENABLED_AESXTS" = "xyes" && test "x$ENABLED_AESNI" = "xyes"], |
4856 | | - [AM_CCASFLAGS="$AM_CCASFLAGS -DWOLFSSL_AES_XTS"]) |
4857 | | - |
4858 | 4853 | # Web Server Build |
4859 | 4854 | AC_ARG_ENABLE([webserver], |
4860 | 4855 | [AS_HELP_STRING([--enable-webserver],[Enable Web Server (default: disabled)])], |
@@ -4953,6 +4948,9 @@ AS_CASE([$FIPS_VERSION], |
4953 | 4948 | AS_IF([test "$ENABLED_AESCCM" != "yes" && (test "$FIPS_VERSION" != "dev" || test "$enable_aesccm" != "no")], |
4954 | 4949 | [ENABLED_AESCCM="yes"; AM_CFLAGS="$AM_CFLAGS -DHAVE_AESCCM"]) |
4955 | 4950 |
|
| 4951 | + AS_IF([test "$ENABLED_AESXTS" = "yes" && (test "$FIPS_VERSION" != "dev" || test "$enable_aesxts" != "yes")], |
| 4952 | + [ENABLED_AESXTS="no"]) |
| 4953 | +
|
4956 | 4954 | AS_IF([test "$ENABLED_RSAPSS" != "yes" && (test "$FIPS_VERSION" != "dev" || test "$enable_rsapss" != "no")], |
4957 | 4955 | [ENABLED_RSAPSS="yes"; AM_CFLAGS="$AM_CFLAGS -DWC_RSA_PSS"]) |
4958 | 4956 |
|
@@ -4994,7 +4992,8 @@ AS_CASE([$FIPS_VERSION], |
4994 | 4992 | AS_IF([(test "$ENABLED_AESCCM" = "yes" && test "$HAVE_AESCCM_PORT" != "yes") || |
4995 | 4993 | (test "$ENABLED_AESCTR" = "yes" && test "$HAVE_AESCTR_PORT" != "yes") || |
4996 | 4994 | (test "$ENABLED_AESGCM" = "yes" && test "$HAVE_AESGCM_PORT" != "yes") || |
4997 | | - (test "$ENABLED_AESOFB" = "yes" && test "$HAVE_AESOFB_PORT" != "yes")], |
| 4995 | + (test "$ENABLED_AESOFB" = "yes" && test "$HAVE_AESOFB_PORT" != "yes") || |
| 4996 | + (test "$ENABLED_AESXTS" = "yes" && test "$HAVE_AESXTS_PORT" != "yes")], |
4998 | 4997 | [AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AES_DIRECT -DHAVE_AES_ECB"]) |
4999 | 4998 | ], |
5000 | 4999 |
|
@@ -5100,6 +5099,14 @@ AS_CASE([$SELFTEST_VERSION], |
5100 | 5099 | ]) |
5101 | 5100 |
|
5102 | 5101 |
|
| 5102 | +AS_IF([test "x$ENABLED_AESXTS" = "xyes"], |
| 5103 | + [AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AES_XTS -DWOLFSSL_AES_DIRECT"]) |
| 5104 | +AS_IF([test "x$ENABLED_AESXTS" = "xyes" && test "x$ENABLED_INTELASM" = "xyes"], |
| 5105 | + [AM_CCASFLAGS="$AM_CCASFLAGS -DWOLFSSL_AES_XTS"]) |
| 5106 | +AS_IF([test "x$ENABLED_AESXTS" = "xyes" && test "x$ENABLED_AESNI" = "xyes"], |
| 5107 | + [AM_CCASFLAGS="$AM_CCASFLAGS -DWOLFSSL_AES_XTS"]) |
| 5108 | + |
| 5109 | + |
5103 | 5110 | # Set SHA-3 flags |
5104 | 5111 | if test "$ENABLED_SHA3" != "no" && test "$ENABLED_32BIT" = "no" |
5105 | 5112 | then |
@@ -8043,7 +8050,7 @@ if test "$ENABLED_LINUXKM_LKCAPI_REGISTER" != "none" |
8043 | 8050 | then |
8044 | 8051 | AM_CFLAGS="$AM_CFLAGS -DLINUXKM_LKCAPI_REGISTER" |
8045 | 8052 |
|
8046 | | - if test "$ENABLED_AESGCM" != "no" && test "$ENABLED_AESGCM_STREAM" = "no" && test "$ENABLED_AESNI" = "no" && test "$ENABLED_ARMASM" = "no" && test "$ENABLED_FIPS" = "no"; then |
| 8053 | + if test "$ENABLED_AESGCM" != "no" && test "$ENABLED_AESGCM_STREAM" = "no" && test "$ENABLED_ARMASM" = "no" && test "$ENABLED_FIPS" = "no"; then |
8047 | 8054 | ENABLED_AESGCM_STREAM=yes |
8048 | 8055 | fi |
8049 | 8056 |
|
|
0 commit comments