aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream/rc4/rc4.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-07-21 11:27:44 -0400
committerJack Lloyd <[email protected]>2016-07-21 11:27:44 -0400
commitcf00df79de807d2ff236cc4c21c1f7549cbfad2f (patch)
treee13bc9adb3989bf907359be93916a7d15accf5af /src/lib/stream/rc4/rc4.cpp
parent308c7d5eda678566edd26e9ab20edbe772f46363 (diff)
parentadfc3e082d176f2f5141374f507a13d575898cff (diff)
Merge GH #544 Make StreamCipher::set_iv pure virtual
Diffstat (limited to 'src/lib/stream/rc4/rc4.cpp')
-rw-r--r--src/lib/stream/rc4/rc4.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/stream/rc4/rc4.cpp b/src/lib/stream/rc4/rc4.cpp
index a4dea9e2b..e5ea2e2b8 100644
--- a/src/lib/stream/rc4/rc4.cpp
+++ b/src/lib/stream/rc4/rc4.cpp
@@ -6,6 +6,7 @@
*/
#include <botan/rc4.h>
+#include <botan/exceptn.h>
namespace Botan {
@@ -35,6 +36,11 @@ void RC4::cipher(const byte in[], byte out[], size_t length)
m_position += length;
}
+void RC4::set_iv(const byte*, size_t)
+ {
+ throw Exception("RC4 does not support an IV");
+ }
+
/*
* Generate cipher stream
*/