aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/idea/idea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/idea/idea.cpp')
-rw-r--r--src/block/idea/idea.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/block/idea/idea.cpp b/src/block/idea/idea.cpp
index 15062abdf..61a938c57 100644
--- a/src/block/idea/idea.cpp
+++ b/src/block/idea/idea.cpp
@@ -160,4 +160,10 @@ void IDEA::key_schedule(const byte key[], size_t)
DK[0] = mul_inv(EK[48]);
}
+void IDEA::clear()
+ {
+ zap(EK);
+ zap(DK);
+ }
+
}