From: Dr. Stephen Henson Date: Wed, 14 Apr 2010 00:33:06 +0000 (+0000) Subject: fix bug in ccgost CFB mode code X-Git-Tag: OpenSSL-fips-2_0-rc1~1131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d1a50ac2a1bf1ef36102f17fd43e988d03cf7ec;p=openssl 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];