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