]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
gosthash2012: Remove unreachable code from `pad'
authorVitaly Chikunov <vt@altlinux.org>
Thu, 30 Jan 2020 00:41:01 +0000 (03:41 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Sun, 2 Feb 2020 18:05:29 +0000 (21:05 +0300)
`CTX->bufsize' cannot be 64 ever.

gosthash2012.c

index dce3e9b38e464111d534aa5c8b0d7c0a1d69d98a..e94273df0635022fa38c99e921fc97a76b178629 100644 (file)
@@ -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);