Update SoftHSM v2.0 to the latest version
[aaf/sshsm.git] / SoftHSMv2 / modules / tests / test_botan_ed25519.cpp
diff --git a/SoftHSMv2/modules/tests/test_botan_ed25519.cpp b/SoftHSMv2/modules/tests/test_botan_ed25519.cpp
new file mode 100644 (file)
index 0000000..8ac4bac
--- /dev/null
@@ -0,0 +1,14 @@
+#include <botan/init.h>
+#include <botan/ed25519.h>
+#include <botan/version.h>
+int main()
+{
+        Botan::secure_vector<uint8_t> k(32);
+        try {
+                Botan::Ed25519_PrivateKey* key =
+                    new Botan::Ed25519_PrivateKey(k);
+        } catch(...) {
+                return 1;
+        }
+        return 0;
+}