VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Lukas Bulwahn <lukas.bulwahn@gmail.com> 2021-08-22 12:31:07 +0200 committer: Herbert Xu <herbert@gondor.apana.org.au> 2021-08-27 16:30:19 +0800 commit: 6ae51ffe5e768d9e25a7f4298e2e7a058472bcc3 parent: 72ff2bf04db2a48840df93a461b7115900f46c05
Commit Summary:
crypto: sha512 - remove imaginary and mystifying clearing of variables
Diffstat:
1 file changed, 0 insertions, 2 deletions
diff --git a/crypto/sha512_generic.c b/crypto/sha512_generic.c
index c72d72ad828e..be70e76d6d86 100644
--- a/crypto/sha512_generic.c
+++ b/crypto/sha512_generic.c
@@ -143,9 +143,6 @@ sha512_transform(u64 *state, const u8 *input)
 
 	state[0] += a; state[1] += b; state[2] += c; state[3] += d;
 	state[4] += e; state[5] += f; state[6] += g; state[7] += h;
-
-	/* erase our data */
-	a = b = c = d = e = f = g = h = t1 = t2 = 0;
 }
 
 static void sha512_generic_block_fn(struct sha512_state *sst, u8 const *src,