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:
68be98d
)
PR: 2164
author
Dr. Stephen Henson
<steve@openssl.org>
Mon, 15 Feb 2010 19:02:53 +0000
(19:02 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Mon, 15 Feb 2010 19:02:53 +0000
(19:02 +0000)
Submitted by: "Noszticzius, Istvan" <inoszticzius@rightnow.com>
Don't clear the output buffer: ciphers should correctly the same input
and output buffers.
crypto/aes/aes_cfb.c
patch
|
blob
|
history
diff --git
a/crypto/aes/aes_cfb.c
b/crypto/aes/aes_cfb.c
index 49f0411010c371a0285ca22280a7f1ff1f609fb4..9384ba67f7f90039845a893f97f918129a39e9b7 100644
(file)
--- 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;