X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_grasshopper_cipher.c;h=081a148380790632fe455c3c7d62c751530dc8f1;hb=5d5cf4ef13193928b9a3e5964ead3a023b13c591;hp=14b09dde3f067b7a5af509902bb4d3b087fe777c;hpb=a58abf85c7000a28ebd84757812c52d629d7af06;p=openssl-gost%2Fengine.git 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;