-
Notifications
You must be signed in to change notification settings - Fork 24
Add ML-KEM support #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add ML-KEM support #175
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -537,6 +537,27 @@ then | |
| AM_CFLAGS="$AM_CFLAGS -DWOLFPKCS11_MLDSA" | ||
| fi | ||
|
|
||
| AC_ARG_ENABLE([mlkem], | ||
| [AS_HELP_STRING([--enable-mlkem],[Enable ML-KEM (default: disabled)])], | ||
| [ ENABLED_MLKEM=$enableval ], | ||
| [ ENABLED_MLKEM=no ] | ||
| ) | ||
|
|
||
| if test "$ENABLED_SHA3" = "no" | ||
| then | ||
| echo "ML-KEM requires SHA-3 support (disabled), disabling ML-KEM" | ||
| ENABLED_MLKEM=no | ||
| fi | ||
|
|
||
| if test "$ENABLED_MLKEM" = "yes" | ||
| then | ||
| if test "$ENABLED_PKCS11V3_2" = "no"; then | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When In practice, V3_0 defaults to Recommendation: Add V3_0 auto-enable logic to match the CMake behavior: if test "$ENABLED_MLKEM" = "yes"
then
if test "$ENABLED_PKCS11V3_2" = "no"; then
ENABLED_PKCS11V3_2=yes
AM_CFLAGS="$AM_CFLAGS -DWOLFPKCS11_PKCS11_V3_2"
if test "$ENABLED_PKCS11V3_0" = "no"; then
ENABLED_PKCS11V3_0=yes
AM_CFLAGS="$AM_CFLAGS -DWOLFPKCS11_PKCS11_V3_0"
fi
fi
AM_CFLAGS="$AM_CFLAGS -DWOLFPKCS11_MLKEM"
fi |
||
| ENABLED_PKCS11V3_2=yes | ||
| AM_CFLAGS="$AM_CFLAGS -DWOLFPKCS11_PKCS11_V3_2" | ||
| fi | ||
| AM_CFLAGS="$AM_CFLAGS -DWOLFPKCS11_MLKEM" | ||
| fi | ||
|
|
||
|
|
||
| AM_CONDITIONAL([BUILD_STATIC],[test "x$enable_shared" = "xno"]) | ||
|
|
||
|
|
@@ -725,6 +746,7 @@ echo " * DH: $ENABLED_DH" | |
| echo " * ECC: $ENABLED_ECC" | ||
| echo " * HKDF: $ENABLED_HKDF" | ||
| echo " * ML-DSA: $ENABLED_MLDSA" | ||
| echo " * ML-KEM: $ENABLED_MLKEM" | ||
| echo " * NSS modifications: $ENABLED_NSS" | ||
| echo " * Default token path: $WOLFPKCS11_DEFAULT_TOKEN_PATH" | ||
| echo " * PKCS#11 Version 3.0: $ENABLED_PKCS11V3_0" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.