]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Bug fixed
authorDmitry Belyavskiy <beldmit@gmail.com>
Tue, 7 May 2019 08:20:39 +0000 (11:20 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Mon, 15 Jul 2019 08:50:24 +0000 (11:50 +0300)
gost_grasshopper_cipher.c

index da67eb4c88eaeaa9d7af47780820fdb690e8b73d..b7bd894958eb77bb1d06d68706d8f4c38c3b5c90 100644 (file)
@@ -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;