From 6ca3db8d47a111dced8858b4e5bda8005bf1500c Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Thu, 30 Jan 2020 03:41:01 +0300 Subject: [PATCH] gosthash2012: Remove unreachable code from `pad' `CTX->bufsize' cannot be 64 ever. --- gosthash2012.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gosthash2012.c b/gosthash2012.c index dce3e9b..e94273d 100644 --- a/gosthash2012.c +++ b/gosthash2012.c @@ -45,9 +45,6 @@ static INLINE void pad(gost2012_hash_ctx * CTX) { unsigned char buf[64]; - if (CTX->bufsize > 63) - return; - memset(&buf, 0x00, sizeof buf); memcpy(&buf, CTX->buffer, CTX->bufsize); -- 2.39.5