From: Dmitry Belyavskiy Date: Mon, 15 Feb 2016 17:55:36 +0000 (+0300) Subject: Fix Visual Studio compliance X-Git-Tag: v1.1.0.2~30 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=4d14d0eb5555adec369d797cd4968c01c1e25cee;p=openssl-gost%2Fengine.git Fix Visual Studio compliance --- diff --git a/gost_crypt.c b/gost_crypt.c index 680406f..259939d 100644 --- a/gost_crypt.c +++ b/gost_crypt.c @@ -365,12 +365,12 @@ static void gost_cnt_next(void *ctx, unsigned char *iv, unsigned char *buf) int gost_cipher_do_cbc(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) { - OPENSSL_assert(inl % 8 == 0); unsigned char b[8]; const unsigned char *in_ptr = in; unsigned char *out_ptr = out; int i; struct ossl_gost_cipher_ctx *c = ctx->cipher_data; + OPENSSL_assert(inl % 8 == 0); if (ctx->encrypt) { while (inl > 0) { for (i = 0; i < 8; i++) {