diff options
author | lloyd <[email protected]> | 2008-09-17 15:55:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-17 15:55:34 +0000 |
commit | dd95e35a05243a8c1e0b35ede66ca608a46ba434 (patch) | |
tree | eec6dcb53327835f27296082423d9e0b1bcfb4b7 /doc/examples/ecdsa.cpp | |
parent | 7362fe2907377899fb9dc2925fab436b6d5e70eb (diff) |
Cleanups
Diffstat (limited to 'doc/examples/ecdsa.cpp')
-rw-r--r-- | doc/examples/ecdsa.cpp | 6 |
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); } |