aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes/ecb
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/modes/ecb')
-rw-r--r--src/lib/modes/ecb/ecb.cpp7
-rw-r--r--src/lib/modes/ecb/ecb.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/modes/ecb/ecb.cpp b/src/lib/modes/ecb/ecb.cpp
index b39682fdf..78dff5ffa 100644
--- a/src/lib/modes/ecb/ecb.cpp
+++ b/src/lib/modes/ecb/ecb.cpp
@@ -1,6 +1,7 @@
/*
* ECB Mode
* (C) 1999-2009,2013 Jack Lloyd
+* (C) 2016 Daniel Neus, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
@@ -25,6 +26,12 @@ void ECB_Mode::clear()
m_cipher->clear();
}
+void ECB_Mode::reset()
+ {
+ // no msg state here
+ return;
+ }
+
std::string ECB_Mode::name() const
{
return cipher().name() + "/ECB/" + padding().name();
diff --git a/src/lib/modes/ecb/ecb.h b/src/lib/modes/ecb/ecb.h
index 4d2a11d05..9fc17a80d 100644
--- a/src/lib/modes/ecb/ecb.h
+++ b/src/lib/modes/ecb/ecb.h
@@ -1,6 +1,7 @@
/*
* ECB Mode
* (C) 1999-2009,2013 Jack Lloyd
+* (C) 2016 Daniel Neus, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
@@ -31,6 +32,9 @@ class BOTAN_DLL ECB_Mode : public Cipher_Mode
bool valid_nonce_length(size_t n) const override;
void clear() override;
+
+ void reset() override;
+
protected:
ECB_Mode(BlockCipher* cipher, BlockCipherModePaddingMethod* padding);