aboutsummaryrefslogtreecommitdiff
path: root/gosthash2012.c
diff options
context:
space:
mode:
authorVitaly Chikunov <vt@altlinux.org>2020-01-30 03:41:01 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2020-02-02 21:05:29 +0300
commit6ca3db8d47a111dced8858b4e5bda8005bf1500c (patch)
tree6801e158ef50d31340b7fce8ebfb6beb876da1ee /gosthash2012.c
parentdf9cdb35ab942db6074dbe325c80a3f8a5fe79cb (diff)
downloadgost-engine-6ca3db8d47a111dced8858b4e5bda8005bf1500c.zip
gost-engine-6ca3db8d47a111dced8858b4e5bda8005bf1500c.tar.gz
gost-engine-6ca3db8d47a111dced8858b4e5bda8005bf1500c.tar.bz2
gosthash2012: Remove unreachable code from `pad'
`CTX->bufsize' cannot be 64 ever.
Diffstat (limited to 'gosthash2012.c')
-rw-r--r--gosthash2012.c3
1 files changed, 0 insertions, 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);