]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshmd5.c
Introduce a new utility function smemclr(), which memsets things to
[PuTTY.git] / sshmd5.c
index 7112d406065ac7299bb028e322a4dcdc720c3426..e5187a661662b4b793330055f717222b503a0572 100644 (file)
--- a/sshmd5.c
+++ b/sshmd5.c
@@ -249,7 +249,7 @@ void hmacmd5_key(void *handle, void const *keyv, int len)
     MD5Init(&keys[1]);
     MD5Update(&keys[1], foo, 64);
 
-    memset(foo, 0, 64);                       /* burn the evidence */
+    smemclr(foo, 64);                 /* burn the evidence */
 }
 
 static void hmacmd5_key_16(void *handle, unsigned char *key)