X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_grasshopper_cipher.c;fp=gost_grasshopper_cipher.c;h=b7bd894958eb77bb1d06d68706d8f4c38c3b5c90;hb=fa0962d85ebe1243747383b1d335cebb35110162;hp=da67eb4c88eaeaa9d7af47780820fdb690e8b73d;hpb=dcdc08f64cc68f4368bcde6e9cf85a6870a4b2a3;p=openssl-gost%2Fengine.git 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;