From: Max Date: Thu, 8 Sep 2016 09:02:49 +0000 (+0300) Subject: minor change X-Git-Tag: v1.1.0.2~22^2~2^2 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F21%2Fhead;p=openssl-gost%2Fengine.git minor change --- diff --git a/gost_crypt.c b/gost_crypt.c index d375a3d..f9ed2cf 100644 --- a/gost_crypt.c +++ b/gost_crypt.c @@ -487,13 +487,13 @@ 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 = EVP_CIPHER_CTX_get_cipher_data(ctx); unsigned char *iv = EVP_CIPHER_CTX_iv_noconst(ctx); - OPENSSL_assert(inl % 8 == 0); if (EVP_CIPHER_CTX_encrypting(ctx)) { while (inl > 0) {