diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-02-15 19:00:12 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-02-15 19:00:12 +0000 |
commit | 918a5d04e4877af15ed5ffb71f4deba560276c0d (patch) | |
tree | ecfd0e73ec6b5e5941342375d3b88568a0ab0e9e /crypto | |
parent | f9595988665e86018cdbd76d8f0edb2d9a44bcb1 (diff) |
PR: 2164
Submitted by: "Noszticzius, Istvan" <inoszticzius@rightnow.com>
Don't clear the output buffer: ciphers should correctly the same input
and output buffers.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/modes/cfb128.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/modes/cfb128.c b/crypto/modes/cfb128.c index b6d1e886b9..98f4cf315c 100644 --- a/crypto/modes/cfb128.c +++ b/crypto/modes/cfb128.c @@ -224,7 +224,6 @@ void CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out, assert(in && out && key && ivec && num); assert(*num == 0); - memset(out,0,(bits+7)/8); for(n=0 ; n<bits ; ++n) { c[0]=(in[n/8]&(1 << (7-n%8))) ? 0x80 : 0; |