Skip to content

Commit

Permalink
Kyber: Implementation in wolfSSL
Browse files Browse the repository at this point in the history
Put Kyber implementation into wolfSSL.
  • Loading branch information
SparkiDev committed Mar 13, 2024
1 parent 5dba7d3 commit 25b2c66
Show file tree
Hide file tree
Showing 5 changed files with 32,351 additions and 25 deletions.
16 changes: 6 additions & 10 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1121,10 +1121,6 @@ do
;;
no)
;;
wolfssl)
ENABLED_WC_KYBER=yes
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_KYBER"
;;
small)
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_KYBER_SMALL"
;;
Expand All @@ -1146,6 +1142,12 @@ done
if test "$ENABLED_KYBER" != "no"
then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_KYBER"
# Use liboqs if specified.
if test "$ENABLED_LIBOQS" = "no"; then
ENABLED_WC_KYBER=yes
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_WC_KYBER"
AM_CCASFLAGS="$AM_CCASFLAGS -DWOLFSSL_WC_KYBER"
fi

if test "$ENABLED_KYBER512" = ""; then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_NO_KYBER512"
Expand All @@ -1162,12 +1164,6 @@ then
test "$enable_sha3" = "" && enable_sha3=yes
test "$enable_shake128" = "" && enable_shake128=yes
test "$enable_shake256" = "" && enable_shake256=yes
else
# Default is to use liboqs. Make sure its enabled.
if test "$ENABLED_LIBOQS" = "no"; then
AC_MSG_ERROR([The default implementation for kyber is liboqs.
Please use --with-liboqs.])
fi
fi
fi

Expand Down
Loading

0 comments on commit 25b2c66

Please sign in to comment.