]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshsh512.c
Key rollover: rewrite the PGP keys manual appendix.
[PuTTY.git] / sshsh512.c
index 8d0b1ae3629791d3e52dbf2bb5e220f59a0c2157..eef733e67c8f55b986850f70ee4c0bdb71f48208 100644 (file)
@@ -274,6 +274,7 @@ void SHA512_Simple(const void *p, int len, unsigned char *output) {
     SHA512_Init(&s);
     SHA512_Bytes(&s, p, len);
     SHA512_Final(&s, output);
+    smemclr(&s, sizeof(s));
 }
 
 #ifdef TEST