]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshrsa.c
Introduce a new utility function smemclr(), which memsets things to
[PuTTY.git] / sshrsa.c
index 0c1b2ef5a421d642a5fd57e26e26ad02a1902216..77a6bb250cec41c11b2e4df6ccac28aef1c7ab5a 100644 (file)
--- a/sshrsa.c
+++ b/sshrsa.c
@@ -110,7 +110,7 @@ static void sha512_mpint(SHA512_State * s, Bignum b)
        lenbuf[0] = bignum_byte(b, len);
        SHA512_Bytes(s, lenbuf, 1);
     }
-    memset(lenbuf, 0, sizeof(lenbuf));
+    smemclr(lenbuf, sizeof(lenbuf));
 }
 
 /*