diff options
Diffstat (limited to 'doc/examples/ecdsa.cpp')
-rw-r--r-- | doc/examples/ecdsa.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/examples/ecdsa.cpp b/doc/examples/ecdsa.cpp index db4a94f3f..ce199936d 100644 --- a/doc/examples/ecdsa.cpp +++ b/doc/examples/ecdsa.cpp @@ -12,12 +12,11 @@ int main() { try { - std::auto_ptr<RandomNumberGenerator> rng( - RandomNumberGenerator::make_rng()); + AutoSeeded_RNG rng; EC_Domain_Params params = get_EC_Dom_Pars_by_oid("1.3.132.0.8"); - ECDSA_PrivateKey ecdsa(*rng, params); + ECDSA_PrivateKey ecdsa(rng, params); ECDSA_PublicKey ecdsa_pub = ecdsa; @@ -34,7 +33,7 @@ int main() signer->update((const byte*)message, strlen(message)); - SecureVector<byte> sig = signer->signature(*rng); + SecureVector<byte> sig = signer->signature(rng); std::cout << sig.size() << "\n"; |