diff options
Diffstat (limited to 'lib/libcrypto/gost')
-rw-r--r-- | lib/libcrypto/gost/gostr341194.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/gost/gostr341194.c b/lib/libcrypto/gost/gostr341194.c index 34ca504bb2e..32c166aefa0 100644 --- a/lib/libcrypto/gost/gostr341194.c +++ b/lib/libcrypto/gost/gostr341194.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gostr341194.c,v 1.3 2014/12/07 16:33:51 jsing Exp $ */ +/* $OpenBSD: gostr341194.c,v 1.4 2015/07/15 17:13:17 beck Exp $ */ /* * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> * Copyright (c) 2005-2006 Cryptocom LTD @@ -238,7 +238,7 @@ GOSTR341194_Final(unsigned char *md, GOSTR341194_CTX * c) unsigned char T[32]; if (c->num > 0) { - memset(p + c->num, 0, 32); + memset(p + c->num, 0, 32 - c->num); hash_step(c, c->H, p); add_blocks(32, c->S, p); } |