diff options
author | lloyd <[email protected]> | 2008-08-30 19:32:08 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-08-30 19:32:08 +0000 |
commit | 3bac1d990af53d6646f768a2b47d5b18d933fea2 (patch) | |
tree | 22d2d22e812b2d6a7dc84b734300fc5e32b1db5f /doc/examples | |
parent | 0331ad92bec89b01680d42a619523ed77225ba12 (diff) |
Allow creation of SEC1 curves
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/Makefile | 4 | ||||
-rw-r--r-- | doc/examples/ecdsa.cpp | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/doc/examples/Makefile b/doc/examples/Makefile index 6706aaaf6..a25782f89 100644 --- a/doc/examples/Makefile +++ b/doc/examples/Makefile @@ -65,6 +65,10 @@ encrypt: encrypt.cpp $(CXX) $(FLAGS) $? $(LIBS) -o $@ @$(STRIP) $@ +ecdsa: ecdsa.cpp + $(CXX) $(FLAGS) $? $(LIBS) -o $@ + @$(STRIP) $@ + factor: factor.cpp $(CXX) $(FLAGS) $? $(LIBS) -o $@ @$(STRIP) $@ diff --git a/doc/examples/ecdsa.cpp b/doc/examples/ecdsa.cpp index bf2d79803..6b6bb65e5 100644 --- a/doc/examples/ecdsa.cpp +++ b/doc/examples/ecdsa.cpp @@ -1,5 +1,7 @@ #include <botan/botan.h> -#include <botan/ecdsa.h> +#include <botan/ec.h> + +#include <memory> using namespace Botan; @@ -7,8 +9,8 @@ int main() { std::auto_ptr<RandomNumberGenerator> rng(RandomNumberGenerator::make_rng()); - EC_Domain_Params params = + EC_Domain_Params params = get_EC_Dom_Pars_by_oid("1.3.132.8"); - ECDSA_PrivateKey ecdsa(rng, + ECDSA_PrivateKey ecdsa(rng, params); } |