Zero a cipher completely before freeing it
commita9802d3322f14e9649cbec354ffcf7e1cf266494
authorSebastian Hahn <sebastian@torproject.org>
Mon, 22 Feb 2010 10:39:29 +0000 (22 11:39 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Fri, 26 Feb 2010 04:47:25 +0000 (26 05:47 +0100)
treecae9b145058690e97c874c59a2a211dc15f1bc06
parent5e5bc8724edf28491c36fa2e9dd505967f21d45b
Zero a cipher completely before freeing it

We used to only zero the first ptrsize bytes of the cipher. Since
cipher is large enough, we didn't zero too many bytes. Discovered
and fixed by ekir. Fixes bug 1254.
ChangeLog
src/common/aes.c