aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
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
parent7362fe2907377899fb9dc2925fab436b6d5e70eb (diff)
Cleanups
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/Makefile2
-rw-r--r--doc/examples/ecdsa.cpp6
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);
}