aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/aes/aes_crypter.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-05-09 14:33:22 +0200
committerMartin Willi <martin@revosec.ch>2011-05-09 14:36:15 +0200
commitf7812f6492b31413735c009fd2a76c7587346074 (patch)
tree917ace75f7a744ae592e9f5dfaf0cefb94add0d1 /src/libstrongswan/plugins/aes/aes_crypter.c
parent7dc48bab1bfc92dcf614ef2c12e0dd5e333844ec (diff)
downloadstrongswan-f7812f6492b31413735c009fd2a76c7587346074.tar.bz2
strongswan-f7812f6492b31413735c009fd2a76c7587346074.tar.xz
Wipe memory after using key material (incomplete, to be continued)
Diffstat (limited to 'src/libstrongswan/plugins/aes/aes_crypter.c')
-rw-r--r--src/libstrongswan/plugins/aes/aes_crypter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/aes/aes_crypter.c b/src/libstrongswan/plugins/aes/aes_crypter.c
index f13e33492..2a1fed944 100644
--- a/src/libstrongswan/plugins/aes/aes_crypter.c
+++ b/src/libstrongswan/plugins/aes/aes_crypter.c
@@ -1518,6 +1518,7 @@ METHOD(crypter_t, set_key, void,
METHOD(crypter_t, destroy, void,
private_aes_crypter_t *this)
{
+ memwipe(this, sizeof(*this));
free(this);
}