diff options
author | Richard Levitte <levitte@openssl.org> | 2002-05-31 13:07:45 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-05-31 13:07:45 +0000 |
commit | 90b480f2af5bc4a92cde009a636e0f55678dc91f (patch) | |
tree | ce4d05c45e114d82b6cd623dab4604ea09580ad2 /crypto/aes | |
parent | 578c33c010f153de45036647817f08f2f0ee00fa (diff) |
In CFB mode, the iv is always encrypted.
Diffstat (limited to 'crypto/aes')
-rw-r--r-- | crypto/aes/aes_cfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/aes/aes_cfb.c b/crypto/aes/aes_cfb.c index 9b2917298a..41c2a5ec3d 100644 --- a/crypto/aes/aes_cfb.c +++ b/crypto/aes/aes_cfb.c @@ -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]; |