-
Notifications
You must be signed in to change notification settings - Fork 392
Added ML-DSA support #809
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: main
Are you sure you want to change the base?
Added ML-DSA support #809
Changes from all commits
33234b1
2574ea7
6ca6864
a0f5578
e375dfb
1f41a2d
dbf6866
87eaddc
28d17ba
b198d15
12af1cd
b67ff57
5fe2207
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 |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ Some options (more can be found in CMakeLists.txt): | |
| -DBUILD_TESTS=ON Compile tests along with libraries | ||
| -DDISABLE_NON_PAGED_MEMORY=ON Disable non-paged memory for secure storage | ||
| -DENABLE_EDDSA=ON Enable support for EDDSA | ||
| -DENABLE_MLDSA=ON Enable support for ML-DSA | ||
| -DWITH_MIGRATE=ON Build migration tool | ||
|
Comment on lines
11
to
15
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. Replace hard tabs to satisfy MD010. Static analysis flags hard tabs on the new line. Please switch to spaces to keep markdownlint clean. 🧹 Suggested fix- -DENABLE_MLDSA=ON Enable support for ML-DSA
+ -DENABLE_MLDSA=ON Enable support for ML-DSA🧰 Tools🪛 markdownlint-cli2 (0.18.1)11-11: Hard tabs (MD010, no-hard-tabs) 11-11: Hard tabs (MD010, no-hard-tabs) 12-12: Hard tabs (MD010, no-hard-tabs) 12-12: Hard tabs (MD010, no-hard-tabs) 13-13: Hard tabs (MD010, no-hard-tabs) 13-13: Hard tabs (MD010, no-hard-tabs) 14-14: Hard tabs (MD010, no-hard-tabs) 14-14: Hard tabs (MD010, no-hard-tabs) 15-15: Hard tabs (MD010, no-hard-tabs) 15-15: Hard tabs (MD010, no-hard-tabs) 🤖 Prompt for AI Agents |
||
| -DWITH_CRYPTO_BACKEND=openssl Select crypto backend (openssl|botan) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| AC_DEFUN([ACX_OPENSSL_MLDSA],[ | ||
| AC_MSG_CHECKING(for OpenSSL ML-DSA support) | ||
|
|
||
| tmp_CPPFLAGS=$CPPFLAGS | ||
| tmp_LIBS=$LIBS | ||
|
|
||
| CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES" | ||
| LIBS="$CRYPTO_LIBS $LIBS" | ||
|
|
||
| AC_LANG_PUSH([C]) | ||
| AC_CACHE_VAL([acx_cv_lib_openssl_mldsa_support],[ | ||
| acx_cv_lib_openssl_mldsa_support=no | ||
| AC_RUN_IFELSE([ | ||
| AC_LANG_SOURCE([[ | ||
| #include <openssl/evp.h> | ||
| #include <openssl/objects.h> | ||
| int main() | ||
| { | ||
| EVP_PKEY_CTX *pctx = | ||
| EVP_PKEY_CTX_new_from_name(NULL, "ML-DSA-44", NULL); | ||
| if (pctx == NULL) | ||
| return 1; | ||
| return 0; | ||
| } | ||
| ]]) | ||
| ],[ | ||
| AC_MSG_RESULT([yes]) | ||
| acx_cv_lib_openssl_mldsa_support=yes | ||
| ],[ | ||
| AC_MSG_RESULT([no]) | ||
| acx_cv_lib_openssl_mldsa_support=no | ||
| ],[ | ||
| AC_MSG_WARN([Cannot test, ML-DSA]) | ||
| acx_cv_lib_openssl_mldsa_support=no | ||
| ]) | ||
antoinelochet marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ]) | ||
|
|
||
| AC_LANG_POP([C]) | ||
|
|
||
| CPPFLAGS=$tmp_CPPFLAGS | ||
| LIBS=$tmp_LIBS | ||
| have_lib_openssl_mldsa_support="${acx_cv_lib_openssl_mldsa_support}" | ||
| ]) | ||
Uh oh!
There was an error while loading. Please reload this page.