From c6055aaccac86e1ca8a9d35c980d7abbacf2a9ff Mon Sep 17 00:00:00 2001 From: Jussi Kivilinna Date: Fri, 5 Apr 2019 18:48:13 +0300 Subject: Remove extra buffer flush at begining of digest final functions * cipher/md2.c (md2_final): Remove _gcry_md_block_write flush call from entry. * cipher/md4.c (md4_final): Ditto. * cipher/md5.c (md5_final): Ditto. * cipher/rmd160.c (rmd160_final): Ditto. * cipher/sha1.c (sha1_final): Ditto. * cipher/sha256.c (sha256_final): Ditto. * cipher/sha512.c (sha512_final): Ditto. * cipher/sm3.c (sm3_final): Ditto. * cipher/stribog.c (stribog_final): Ditto. * cipher/tiger.c (tiger_final): Ditto. -- Signed-off-by: Jussi Kivilinna --- cipher/stribog.c | 1 - 1 file changed, 1 deletion(-) (limited to 'cipher/stribog.c') diff --git a/cipher/stribog.c b/cipher/stribog.c index d31dddd3..3eb07735 100644 --- a/cipher/stribog.c +++ b/cipher/stribog.c @@ -1287,7 +1287,6 @@ stribog_final (void *context) u64 Z[8] = {}; int i; - _gcry_md_block_write (context, NULL, 0); /* flush */ ; /* PAD. It does not count towards message length */ i = hd->bctx.count; /* After flush we have at least one byte free) */ -- cgit v1.2.1