From 5daa9411a0d4953ff38e59f37f45dc5178b635cf Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 14 Apr 2010 00:33:22 +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.25.1