engines/cchost/gost_crypt.c: fix typo.
authorAndy Polyakov <appro@openssl.org>
Wed, 19 Dec 2012 11:06:00 +0000 (11:06 +0000)
committerAndy Polyakov <appro@openssl.org>
Wed, 19 Dec 2012 11:06:00 +0000 (11:06 +0000)
engines/ccgost/gost_crypt.c

index 05429908f42a7d83b53ee57c68a9ec4bf3ea5552..d227ba25dbf74e830fc1e755264d222816ad99d9 100644 (file)
@@ -516,7 +516,7 @@ static void mac_block_mesh(struct ossl_gost_imit_ctx *c,const unsigned char *dat
                cryptopro_key_meshing(&(c->cctx),buffer);
                }
        mac_block(&(c->cctx),c->buffer,data);
-       c->count = (c->count+1)%1024 + 1024;
+       c->count = (c->count+8)%1024 + 1024;
        }
 
 int gost_imit_update(EVP_MD_CTX *ctx, const void *data, size_t count)