From: Dr. Stephen Henson Date: Wed, 14 Apr 2010 00:33:22 +0000 (+0000) Subject: fix bug in ccgost CFB mode code X-Git-Tag: OpenSSL_1_0_0a~33 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5daa9411a0d4953ff38e59f37f45dc5178b635cf;p=oweals%2Fopenssl.git fix bug in ccgost CFB mode code --- diff --git a/engines/ccgost/gost_crypt.c b/engines/ccgost/gost_crypt.c index 44f4e49bc9..4977d1dcf5 100644 --- a/engines/ccgost/gost_crypt.c +++ b/engines/ccgost/gost_crypt.c @@ -299,7 +299,7 @@ int gost_cipher_do_cfb(EVP_CIPHER_CTX *ctx, unsigned char *out, if (icipher_data,ctx->iv,ctx->buf); - if (!ctx->encrypt) memcpy(ctx->buf+8,in_ptr,j); + if (!ctx->encrypt) memcpy(ctx->buf+8,in_ptr,inl-i); for (j=0;ibuf[j]^in_ptr[j];