aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/rsa_dec.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-28 12:35:52 +0000
committerlloyd <[email protected]>2008-06-28 12:35:52 +0000
commit022f07c82e3c83f4ec6829b03c7013ced1710c41 (patch)
tree2fa10481cc34a8c2e3b9ed952372ce4d439abc88 /doc/examples/rsa_dec.cpp
parent7e48e57fe153f002f3fcc9731261ce3f3fe86839 (diff)
Fix the DSA examples. Reindent.
Diffstat (limited to 'doc/examples/rsa_dec.cpp')
-rw-r--r--doc/examples/rsa_dec.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/examples/rsa_dec.cpp b/doc/examples/rsa_dec.cpp
index 910d07adf..ca93756f2 100644
--- a/doc/examples/rsa_dec.cpp
+++ b/doc/examples/rsa_dec.cpp
@@ -34,8 +34,12 @@ int main(int argc, char* argv[])
try
{
- std::auto_ptr<RandomNumberGenerator> rng(make_rng());
- std::auto_ptr<PKCS8_PrivateKey> key(PKCS8::load_key(argv[1], *rng, argv[3]));
+ std::auto_ptr<RandomNumberGenerator> rng(
+ RandomNumberGenerator::make_rng());
+
+ std::auto_ptr<PKCS8_PrivateKey> key(
+ PKCS8::load_key(argv[1], *rng, argv[3]));
+
RSA_PrivateKey* rsakey = dynamic_cast<RSA_PrivateKey*>(key.get());
if(!rsakey)
{