]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshsha.c
Introduce a new utility function smemclr(), which memsets things to
[PuTTY.git] / sshsha.c
index cbe9d78b43b1d1694a130375dc60bf124e12a5ac..30113511b44527819c5c4d6a858c8b53bef823e7 100644 (file)
--- a/sshsha.c
+++ b/sshsha.c
@@ -253,7 +253,7 @@ static void sha1_key_internal(void *handle, unsigned char *key, int len)
     SHA_Init(&keys[1]);
     SHA_Bytes(&keys[1], foo, 64);
 
-    memset(foo, 0, 64);                       /* burn the evidence */
+    smemclr(foo, 64);                 /* burn the evidence */
 }
 
 static void sha1_key(void *handle, unsigned char *key)