From: Dmitry Belyavskiy Date: Tue, 7 May 2019 08:20:39 +0000 (+0300) Subject: Bug fixed X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=5d5cf4ef13193928b9a3e5964ead3a023b13c591;p=openssl-gost%2Fengine.git Bug fixed --- 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;