From fa00ea10f915048be03c3b435838554c001aa37c Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sat, 11 Jan 2020 14:24:10 +0100 Subject: [PATCH] Removed unnecessary wipe --- src/monocypher.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/monocypher.c b/src/monocypher.c index 79dabcc..1323ace 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -1006,7 +1006,7 @@ void crypto_argon2i_general(u8 *hash, u32 hash_size, // fill (then re-fill) the rest of the blocks block tmp; - gidx_ctx ctx; + gidx_ctx ctx; // public information, no need to wipe FOR_T (u32, pass_number, 0, nb_iterations) { int first_pass = pass_number == 0; @@ -1032,7 +1032,6 @@ void crypto_argon2i_general(u8 *hash, u32 hash_size, } } } - wipe_block(&ctx.b); wipe_block(&tmp); // hash the very last block with H' into the output hash u8 final_block[1024]; -- 2.47.3