1 AC_DEFUN([ACX_BOTAN_EDDSA],[
2 AC_MSG_CHECKING(for Botan EDDSA support)
7 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
8 LIBS="$CRYPTO_LIBS $LIBS"
11 AC_CACHE_VAL([acx_cv_lib_botan_eddsa_support],[
12 acx_cv_lib_botan_eddsa_support=no
15 #include <botan/init.h>
16 #include <botan/ed25519.h>
17 #include <botan/version.h>
20 Botan::secure_vector<uint8_t> k(32);
22 Botan::Ed25519_PrivateKey* key =
23 new Botan::Ed25519_PrivateKey(k);
31 AC_MSG_RESULT([Found Ed25519])
32 acx_cv_lib_botan_eddsa_support=yes
34 AC_MSG_RESULT([Cannot find Ed25519])
36 Botan library has no valid EDDSA support. Please upgrade to a later version
37 of Botan with EDDSA support.
38 Alternatively disable EDDSA support in SoftHSM with --disable-eddsa
41 AC_MSG_WARN([Cannot test, assuming EDDSA])
42 acx_cv_lib_botan_eddsa_support=yes
47 CPPFLAGS=$tmp_CPPFLAGS