]> git.codecow.com Git - Monocypher.git/commitdiff
Forgot to wipe buffers
authorLoup Vaillant <loup@loup-vaillant.fr>
Tue, 24 Mar 2020 12:34:55 +0000 (13:34 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Tue, 24 Mar 2020 12:34:55 +0000 (13:34 +0100)
src/monocypher.c

index c52d62504c08604253a9212bbff93be66a84eac9..3460b99cefc37e21f8932efff7b8b59413a4366c 100644 (file)
@@ -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);
 }
 
 ////////////////////////////////