From 440a5d6bd0de20027d8c094abdd1390ee23eae6f Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 24 May 2008 19:14:55 +0000 Subject: Update passhash example with new S2K::new_random_salt signature --- doc/examples/passhash.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/examples/passhash.cpp') diff --git a/doc/examples/passhash.cpp b/doc/examples/passhash.cpp index a270e8256..f8bac1443 100644 --- a/doc/examples/passhash.cpp +++ b/doc/examples/passhash.cpp @@ -1,5 +1,6 @@ #include #include +#include #include using namespace Botan; @@ -43,7 +44,7 @@ std::string password_hash(const std::string& pass) PKCS5_PBKDF2 kdf("SHA-1"); kdf.set_iterations(10000); - kdf.new_random_salt(6); // 48 bits + kdf.new_random_salt(global_state().prng_reference(), 6); // 48 bits Pipe pipe(new Base64_Encoder); pipe.start_msg(); -- cgit v1.2.3