aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/ecdsa.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-12 22:37:22 +0000
committerlloyd <[email protected]>2008-09-12 22:37:22 +0000
commit7362fe2907377899fb9dc2925fab436b6d5e70eb (patch)
tree3a9b2eb94f9bb01ccd5a885085dac441b221b91f /doc/examples/ecdsa.cpp
parent7d6466b60d9992bb54e5443cf8a1636fc517961c (diff)
parente4f7df645822318dc7254dc5799cd17da3d88e4d (diff)
propagate from branch 'net.randombit.botan' (head 1d14c1a239891181cf9f2bed483463f6dc1728b5)
to branch 'net.randombit.botan.ecdsa' (head bed6621156fe712b0cb5403149105889a78d2443)
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);
+
+ }