aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes/xts/xts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/modes/xts/xts.cpp')
-rw-r--r--src/lib/modes/xts/xts.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/modes/xts/xts.cpp b/src/lib/modes/xts/xts.cpp
index 4b697ae6c..13dc932ea 100644
--- a/src/lib/modes/xts/xts.cpp
+++ b/src/lib/modes/xts/xts.cpp
@@ -1,6 +1,7 @@
/*
* XTS Mode
* (C) 2009,2013 Jack Lloyd
+* (C) 2016 Daniel Neus, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
@@ -61,6 +62,11 @@ void XTS_Mode::clear()
{
m_cipher->clear();
m_tweak_cipher->clear();
+ reset();
+ }
+
+void XTS_Mode::reset()
+ {
zeroise(m_tweak);
}