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 | |
parent | 7362fe2907377899fb9dc2925fab436b6d5e70eb (diff) |
Cleanups
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/Makefile | 2 | ||||
-rw-r--r-- | doc/examples/ecdsa.cpp | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/examples/Makefile b/doc/examples/Makefile index a25782f89..879d48d83 100644 --- a/doc/examples/Makefile +++ b/doc/examples/Makefile @@ -10,7 +10,7 @@ LIBS = `$(BOTAN_DIR)/botan-config --libs` FLAGS = $(INCLUDES) $(CFLAGS) -I$(BOTAN_DIR)/build/include -L$(BOTAN_DIR) PROGS = asn1 base base64 bzip ca decrypt dh dsa_kgen dsa_sign dsa_ver \ - encrypt factor hash hash_fd hasher hasher2 \ + ecdsa encrypt factor hash hash_fd hasher hasher2 \ passhash pkcs10 rsa_dec rsa_enc rsa_kgen self_sig stack \ x509info xor_ciph 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); } |