aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes/cfb/cfb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/modes/cfb/cfb.cpp')
-rw-r--r--src/lib/modes/cfb/cfb.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/modes/cfb/cfb.cpp b/src/lib/modes/cfb/cfb.cpp
index 793bfaf46..2d1477e27 100644
--- a/src/lib/modes/cfb/cfb.cpp
+++ b/src/lib/modes/cfb/cfb.cpp
@@ -1,6 +1,7 @@
/*
* CFB Mode
* (C) 1999-2007,2013 Jack Lloyd
+* (C) 2016 Daniel Neus, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
@@ -22,7 +23,13 @@ CFB_Mode::CFB_Mode(BlockCipher* cipher, size_t feedback_bits) :
void CFB_Mode::clear()
{
m_cipher->clear();
+ reset();
+ }
+
+void CFB_Mode::reset()
+ {
m_shift_register.clear();
+ m_keystream_buf.clear();
}
std::string CFB_Mode::name() const