aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/serpent/serpent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/serpent/serpent.cpp')
-rw-r--r--src/block/serpent/serpent.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/block/serpent/serpent.cpp b/src/block/serpent/serpent.cpp
index 0f0a4fd63..8c83b69de 100644
--- a/src/block/serpent/serpent.cpp
+++ b/src/block/serpent/serpent.cpp
@@ -391,4 +391,9 @@ void Serpent::key_schedule(const byte key[], size_t length)
round_key.assign(&W[8], &W[140]);
}
+void Serpent::clear()
+ {
+ zap(round_key);
+ }
+
}