]> git.codecow.com Git - Monocypher.git/commitdiff
Removed unnecessary wipe
authorLoup Vaillant <loup@loup-vaillant.fr>
Sat, 11 Jan 2020 13:24:10 +0000 (14:24 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sat, 11 Jan 2020 13:24:10 +0000 (14:24 +0100)
src/monocypher.c

index 79dabcc22126b00e55d0058c866adf7ab0909f2c..1323ace493a96b484c66c7990a4f387a7aa65420 100644 (file)
@@ -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];