aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_filts.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-10 18:14:54 +0000
committerlloyd <[email protected]>2008-06-10 18:14:54 +0000
commit54fecdc60438d15f970055bb691e18c6469e1785 (patch)
tree1bd44b39489876256adf3d9a0f4ae88e88cfc9d5 /src/pk_filts.cpp
parentdec416d649715617e0eb66b18d69f6dbe9c308b3 (diff)
PK_Encryptor::encrypt now takes a RandomNumberGenerator reference, instead
of using the global RNG object.
Diffstat (limited to 'src/pk_filts.cpp')
-rw-r--r--src/pk_filts.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pk_filts.cpp b/src/pk_filts.cpp
index e72c92ef1..6da6dabfd 100644
--- a/src/pk_filts.cpp
+++ b/src/pk_filts.cpp
@@ -4,6 +4,7 @@
*************************************************/
#include <botan/pk_filts.h>
+#include <botan/libstate.h>
namespace Botan {
@@ -20,7 +21,8 @@ void PK_Encryptor_Filter::write(const byte input[], u32bit length)
*************************************************/
void PK_Encryptor_Filter::end_msg()
{
- send(cipher->encrypt(buffer, buffer.size()));
+ send(cipher->encrypt(buffer, buffer.size(),
+ global_state().prng_reference()));
buffer.destroy();
}