aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/Makefile4
-rw-r--r--doc/examples/ecdsa.cpp16
-rw-r--r--doc/license.txt3
3 files changed, 23 insertions, 0 deletions
diff --git a/doc/examples/Makefile b/doc/examples/Makefile
index 6706aaaf6..a25782f89 100644
--- a/doc/examples/Makefile
+++ b/doc/examples/Makefile
@@ -65,6 +65,10 @@ encrypt: encrypt.cpp
$(CXX) $(FLAGS) $? $(LIBS) -o $@
@$(STRIP) $@
+ecdsa: ecdsa.cpp
+ $(CXX) $(FLAGS) $? $(LIBS) -o $@
+ @$(STRIP) $@
+
factor: factor.cpp
$(CXX) $(FLAGS) $? $(LIBS) -o $@
@$(STRIP) $@
diff --git a/doc/examples/ecdsa.cpp b/doc/examples/ecdsa.cpp
new file mode 100644
index 000000000..6b6bb65e5
--- /dev/null
+++ b/doc/examples/ecdsa.cpp
@@ -0,0 +1,16 @@
+#include <botan/botan.h>
+#include <botan/ec.h>
+
+#include <memory>
+
+using namespace Botan;
+
+int main()
+ {
+ std::auto_ptr<RandomNumberGenerator> rng(RandomNumberGenerator::make_rng());
+
+ EC_Domain_Params params = get_EC_Dom_Pars_by_oid("1.3.132.8");
+
+ ECDSA_PrivateKey ecdsa(rng, params);
+
+ }
diff --git a/doc/license.txt b/doc/license.txt
index c0fb58c10..1b36b84c7 100644
--- a/doc/license.txt
+++ b/doc/license.txt
@@ -7,6 +7,9 @@ Copyright (C) 1999-2008 Jack Lloyd
2007 Yves Jerschow
2007-2008 FlexSecure GmbH
2007-2008 Falko Strenzke
+ 2007 Martin Doering
+ 2007 Manuel Hartl
+ 2007 Christoph Ludwig
Redistribution and use in source and binary forms, for any use, with or without
modification, is permitted provided that the following conditions are met: