From 04a781e84451f264ba89f1d36b4004dd9364038d Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 15 Feb 2010 19:02:53 +0000 Subject: [PATCH] PR: 2164 Submitted by: "Noszticzius, Istvan" Don't clear the output buffer: ciphers should correctly the same input and output buffers. --- crypto/aes/aes_cfb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/aes/aes_cfb.c b/crypto/aes/aes_cfb.c index 49f0411010..9384ba67f7 100644 --- a/crypto/aes/aes_cfb.c +++ b/crypto/aes/aes_cfb.c @@ -201,7 +201,6 @@ void AES_cfb1_encrypt(const unsigned char *in, unsigned char *out, assert(in && out && key && ivec && num); assert(*num == 0); - memset(out,0,(length+7)/8); for(n=0 ; n < length ; ++n) { c[0]=(in[n/8]&(1 << (7-n%8))) ? 0x80 : 0; -- 2.25.1