From 92cf91023efe399441d1eb3da9780eb9671bc47b Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 22 Dec 2017 13:07:36 -0500 Subject: [PATCH] pass correct length --- streebog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streebog.c b/streebog.c index a28cebf..0028dbd 100644 --- a/streebog.c +++ b/streebog.c @@ -1043,7 +1043,7 @@ void gostd_hash(void *output, const void *input, int len) { unsigned char hash[64]; - sph_gost512(hash, (const void*)input, 80); + sph_gost512(hash, (const void*)input, len); sph_gost256(hash, (const void*)hash, 64); int i;