summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-02-15 19:00:12 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-02-15 19:00:12 +0000
commit918a5d04e4877af15ed5ffb71f4deba560276c0d (patch)
treeecfd0e73ec6b5e5941342375d3b88568a0ab0e9e
parentf9595988665e86018cdbd76d8f0edb2d9a44bcb1 (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.
-rw-r--r--crypto/modes/cfb128.c1
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;