From 5d1a50ac2a1bf1ef36102f17fd43e988d03cf7ec Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 14 Apr 2010 00:33:06 +0000 Subject: [PATCH] fix bug in ccgost CFB mode code --- engines/ccgost/gost_crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.40.0