From 6f15d81831fe6d4f48b650cbde8a2ad256c3d9a9 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Tue, 24 Mar 2020 13:34:55 +0100 Subject: [PATCH] Forgot to wipe buffers --- src/monocypher.c | 3 +++ 1 file changed, 3 insertions(+) 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); } //////////////////////////////// -- 2.47.3