]> git.codecow.com Git - Monocypher.git/commitdiff
removed redundant wipe
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 22 Apr 2018 21:32:44 +0000 (23:32 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 22 Apr 2018 21:33:19 +0000 (23:33 +0200)
`crypto_*_final()` functions wipe their contexts already.  No need to
wipe again.

src/monocypher.c

index d042aa2f145fd53962770eeed8e199d8eccc9e0e..66483361b52f017a5cee0131d657f0aef14d004b 100644 (file)
@@ -691,7 +691,6 @@ static void extended_hash(u8       *digest, u32 digest_size,
     blake_update_32            (&ctx, digest_size);
     crypto_blake2b_update      (&ctx, input, input_size);
     crypto_blake2b_final       (&ctx, digest);
-    WIPE_CTX(&ctx);
 
     if (digest_size > 64) {
         // the conversion to u64 avoids integer overflow on