diff options
author | lloyd <[email protected]> | 2014-01-01 23:58:46 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-01-01 23:58:46 +0000 |
commit | 585356e222c5a6116532ba14cce44a2c6cd9c366 (patch) | |
tree | 90a50dec70a8044766fea6a5f9371b7e7c0eb0f3 /doc/examples/rsa_manykey.cpp | |
parent | 48bd53d1918f9ee765313d62eacd054376c0b49e (diff) |
Cull remaining mostly dubious examples. Also remove readme.txt
Diffstat (limited to 'doc/examples/rsa_manykey.cpp')
-rw-r--r-- | doc/examples/rsa_manykey.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/doc/examples/rsa_manykey.cpp b/doc/examples/rsa_manykey.cpp deleted file mode 100644 index c282e7882..000000000 --- a/doc/examples/rsa_manykey.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/* -* (C) 2009 Jack Lloyd -* -* Distributed under the terms of the Botan license -*/ - -/* -Generate a whole sequence of keys (for benchmarking) -*/ - -#include <iostream> -#include <fstream> -#include <string> -#include <cstdlib> -#include <memory> - -#include <botan/botan.h> -#include <botan/rsa.h> -#include <botan/parsing.h> -using namespace Botan; - -int main() - { - Botan::LibraryInitializer init; - - AutoSeeded_RNG rng; - - for(u32bit j = 512; j <= 8192; j += 256) - { - std::cout << j << "..."; - - RSA_PrivateKey key(rng, j); - - std::ofstream priv(("rsa/" + std::to_string(j) + ".pem").c_str()); - priv << PKCS8::PEM_encode(key); - priv.close(); - - std::cout << " done" << std::endl; - } - - return 0; - } |