diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-02-15 19:01:56 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-02-15 19:01:56 +0000 |
commit | edb7cac271ce4144a9696eaecf40a471736a07d1 (patch) | |
tree | eb59abdcbc673df42e675bf74a7be4dd0b128935 /crypto/modes | |
parent | 81d87a2a28df15bcb35295f98a0b06170895536f (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/modes')
-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; |