提交 09c70c32 编写于 作者: R Richard Levitte

In CFB mode, the iv is always encrypted.

上级 1ed0c662
......@@ -137,7 +137,7 @@ void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out,
} else {
while (l--) {
if (n == 0) {
AES_decrypt(ivec, ivec, key);
AES_encrypt(ivec, ivec, key);
}
c = *(in);
*(out++) = *(in++) ^ ivec[n];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册