From 12c128c1fbb483ae9042b47fc544adf0e55d0693 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 29 Nov 2012 18:58:54 +0000 Subject: Add new helper zap which zeros a vector, clears it, and then calls shrink_to_fit to actually deallocate memory. --- src/block/safer/safer_sk.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/block/safer/safer_sk.cpp') diff --git a/src/block/safer/safer_sk.cpp b/src/block/safer/safer_sk.cpp index 1b79b3c2c..3e93ab8cf 100644 --- a/src/block/safer/safer_sk.cpp +++ b/src/block/safer/safer_sk.cpp @@ -223,6 +223,11 @@ void SAFER_SK::key_schedule(const byte key[], size_t) } } +void SAFER_SK::clear() + { + zap(EK); + } + /* * Return the name of this type */ -- cgit v1.2.3