]> 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>
Tue, 7 May 2019 08:20:39 +0000 (11:20 +0300)
gost_grasshopper_cipher.c

index 14b09dde3f067b7a5af509902bb4d3b087fe777c..081a148380790632fe455c3c7d62c751530dc8f1 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;