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.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);
}