aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/ecdsa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/ecdsa.cpp')
-rw-r--r--doc/examples/ecdsa.cpp16
1 files changed, 16 insertions, 0 deletions
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);
+
+ }