projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f959598
)
PR: 2164
author
Dr. Stephen Henson
<steve@openssl.org>
Mon, 15 Feb 2010 19:00:12 +0000
(19:00 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Mon, 15 Feb 2010 19:00:12 +0000
(19:00 +0000)
Submitted by: "Noszticzius, Istvan" <inoszticzius@rightnow.com>
Don't clear the output buffer: ciphers should correctly the same input
and output buffers.
crypto/modes/cfb128.c
patch
|
blob
|
history
diff --git
a/crypto/modes/cfb128.c
b/crypto/modes/cfb128.c
index b6d1e886b9c38592485db56894c52e59e98d60b6..98f4cf315cd7096ccd4fea5677201a52e312415b 100644
(file)
--- 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;