From 4d14d0eb5555adec369d797cd4968c01c1e25cee Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Mon, 15 Feb 2016 20:55:36 +0300 Subject: [PATCH] Fix Visual Studio compliance --- gost_crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- 2.39.2