From: Loup Vaillant Date: Tue, 24 Mar 2020 12:34:55 +0000 (+0100) Subject: Forgot to wipe buffers X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=6f15d81831fe6d4f48b650cbde8a2ad256c3d9a9;p=Monocypher.git Forgot to wipe buffers --- diff --git a/src/monocypher.c b/src/monocypher.c index c52d625..3460b99 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -2652,6 +2652,9 @@ void crypto_x25519_inverse(u8 blind_salt [32], // 2^255. If we spaned the ladder over 255 bits, random tests // wouldn't catch the off-by-one error. scalarmult(blind_salt, inverse, curve_point, 256); + + WIPE_BUFFER(scalar); + WIPE_BUFFER(inverse); } ////////////////////////////////