]> git.codecow.com Git - Monocypher.git/commitdiff
Forgot to wipe a buffer
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 9 Mar 2020 23:05:53 +0000 (00:05 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 9 Mar 2020 23:05:53 +0000 (00:05 +0100)
src/monocypher.c

index 8fe197ac3a80670680939912c02c54def19907f8..0c51804eb443d61ab825321119c46fd193f5210b 100644 (file)
@@ -2309,7 +2309,7 @@ void crypto_elligator2_direct(uint8_t curve[32], const uint8_t hash[32])
     fe_tobytes(curve, u);
     WIPE_BUFFER(t1);  WIPE_BUFFER(r);
     WIPE_BUFFER(t2);  WIPE_BUFFER(u);
-    WIPE_BUFFER(t3);
+    WIPE_BUFFER(t3);  WIPE_BUFFER(clamped);
 }
 
 int crypto_curve_to_hash(uint8_t hash[32], const uint8_t curve[32])