aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/ecdsa.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-17 15:55:34 +0000
committerlloyd <[email protected]>2008-09-17 15:55:34 +0000
commitdd95e35a05243a8c1e0b35ede66ca608a46ba434 (patch)
treeeec6dcb53327835f27296082423d9e0b1bcfb4b7 /doc/examples/ecdsa.cpp
parent7362fe2907377899fb9dc2925fab436b6d5e70eb (diff)
Cleanups
Diffstat (limited to 'doc/examples/ecdsa.cpp')
-rw-r--r--doc/examples/ecdsa.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/examples/ecdsa.cpp b/doc/examples/ecdsa.cpp
index 6b6bb65e5..029a2956e 100644
--- a/doc/examples/ecdsa.cpp
+++ b/doc/examples/ecdsa.cpp
@@ -2,6 +2,7 @@
#include <botan/ec.h>
#include <memory>
+#include <iostream>
using namespace Botan;
@@ -11,6 +12,9 @@ int main()
EC_Domain_Params params = get_EC_Dom_Pars_by_oid("1.3.132.8");
- ECDSA_PrivateKey ecdsa(rng, params);
+ std::cout << params.get_curve().get_p() << "\n";
+ std::cout << params.get_order() << "\n";
+
+ ECDSA_PrivateKey ecdsa(*rng, params);
}