From 5d5cf4ef13193928b9a3e5964ead3a023b13c591 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Tue, 7 May 2019 11:20:39 +0300 Subject: [PATCH] Bug fixed --- gost_grasshopper_cipher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gost_grasshopper_cipher.c b/gost_grasshopper_cipher.c index 14b09dd..081a148 100644 --- a/gost_grasshopper_cipher.c +++ b/gost_grasshopper_cipher.c @@ -784,6 +784,7 @@ int gost_grasshopper_cipher_do_mgm(EVP_CIPHER_CTX *ctx, unsigned char *out, /* Process last block */ c->ad_length = n; n = 0; + rest_len = 0; EVP_CIPHER_CTX_set_num(ctx, 0); c->mgm_state = mgm_main_data; -- 2.39.2