From: Dr. Stephen Henson Date: Mon, 15 Feb 2010 19:02:53 +0000 (+0000) Subject: PR: 2164 X-Git-Tag: OpenSSL_0_9_8m~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=04a781e84451f264ba89f1d36b4004dd9364038d;p=oweals%2Fopenssl.git PR: 2164 Submitted by: "Noszticzius, Istvan" Don't clear the output buffer: ciphers should correctly the same input and output buffers. --- 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;