From d04e396b6af6fffa97595648faea878b11370fe0 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sun, 22 Apr 2018 23:32:44 +0200 Subject: [PATCH] removed redundant wipe `crypto_*_final()` functions wipe their contexts already. No need to wipe again. --- src/monocypher.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/monocypher.c b/src/monocypher.c index d042aa2..6648336 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -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 -- 2.47.3