File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1121,10 +1121,6 @@ do
11211121 ;;
11221122 no)
11231123 ;;
1124- wolfssl)
1125- ENABLED_WC_KYBER=yes
1126- AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_KYBER"
1127- ;;
11281124 small)
11291125 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_KYBER_SMALL"
11301126 ;;
@@ -1146,6 +1142,12 @@ done
11461142if test "$ENABLED_KYBER" != "no"
11471143then
11481144 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_KYBER"
1145+ # Use liboqs if specified.
1146+ if test "$ENABLED_LIBOQS" = "no"; then
1147+ ENABLED_WC_KYBER=yes
1148+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_KYBER"
1149+ AM_CCASFLAGS="$AM_CCASFLAGS -DWOLFSSL_WC_KYBER"
1150+ fi
11491151
11501152 if test "$ENABLED_KYBER512" = ""; then
11511153 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_NO_KYBER512"
@@ -1162,12 +1164,6 @@ then
11621164 test "$enable_sha3" = "" && enable_sha3=yes
11631165 test "$enable_shake128" = "" && enable_shake128=yes
11641166 test "$enable_shake256" = "" && enable_shake256=yes
1165- else
1166- # Default is to use liboqs. Make sure its enabled.
1167- if test "$ENABLED_LIBOQS" = "no"; then
1168- AC_MSG_ERROR ( [ The default implementation for kyber is liboqs.
1169- Please use --with-liboqs.] )
1170- fi
11711167 fi
11721168fi
11731169
You can’t perform that action at this time.
0 commit comments