aboutsummaryrefslogtreecommitdiffstats
path: root/src/filters.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filters.cpp')
-rw-r--r--src/filters.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/filters.cpp b/src/filters.cpp
index aadc32c4e..9ea082980 100644
--- a/src/filters.cpp
+++ b/src/filters.cpp
@@ -19,6 +19,17 @@ StreamCipher_Filter::StreamCipher_Filter(const std::string& sc_name) :
}
/*************************************************
+* StreamCipher_Filter Constructor *
+*************************************************/
+StreamCipher_Filter::StreamCipher_Filter(const std::string& sc_name,
+ const SymmetricKey& key) :
+ buffer(DEFAULT_BUFFERSIZE)
+ {
+ base_ptr = cipher = get_stream_cipher(sc_name);
+ cipher->set_key(key);
+ }
+
+/*************************************************
* Set the IV of a stream cipher *
*************************************************/
void StreamCipher_Filter::set_iv(const InitializationVector& iv)