提交 918a5d04 编写于 作者: D Dr. Stephen Henson

PR: 2164

Submitted by: "Noszticzius, Istvan" <inoszticzius@rightnow.com>

Don't clear the output buffer: ciphers should correctly the same input
and output buffers.
上级 f9595988
...@@ -224,7 +224,6 @@ void CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out, ...@@ -224,7 +224,6 @@ void CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out,
assert(in && out && key && ivec && num); assert(in && out && key && ivec && num);
assert(*num == 0); assert(*num == 0);
memset(out,0,(bits+7)/8);
for(n=0 ; n<bits ; ++n) for(n=0 ; n<bits ; ++n)
{ {
c[0]=(in[n/8]&(1 << (7-n%8))) ? 0x80 : 0; c[0]=(in[n/8]&(1 << (7-n%8))) ? 0x80 : 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册