aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_filts.cpp
diff options
context:
space:
mode:
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();
}