diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-05-16 22:06:54 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-06-26 17:34:38 +1000 |
commit | 486e83663a87a2b4ac4441032e2da4ce7833c510 (patch) | |
tree | a03b8c9f8e8cdec74138b226a00ec7dcb0ceb8fe /crypto/tgr192.c | |
parent | 5aa683b411263042b1be30f77a55294b52fd02ba (diff) | |
download | linux-crypto-486e83663a87a2b4ac4441032e2da4ce7833c510.tar.gz linux-crypto-486e83663a87a2b4ac4441032e2da4ce7833c510.zip |
[CRYPTO] digest: Remove unnecessary zeroing during init
Various digest algorithms operate one block at a time and therefore
keep a temporary buffer of partial blocks. This buffer does not need
to be initialised since there is a counter which indicates what is and
isn't valid in it.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/tgr192.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/tgr192.c b/crypto/tgr192.c index 1eae1bb7..004bb841 100644 --- a/crypto/tgr192.c +++ b/crypto/tgr192.c @@ -500,7 +500,6 @@ static void tgr192_init(void *ctx) { struct tgr192_ctx *tctx = ctx; - memset (tctx->hash, 0, 64); tctx->a = 0x0123456789abcdefULL; tctx->b = 0xfedcba9876543210ULL; tctx->c = 0xf096a5b4c3b2e187ULL; |