diff options
author | Richard Levitte <levitte@openssl.org> | 2002-05-31 13:07:39 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-05-31 13:07:39 +0000 |
commit | 09c70c3261e5a574294035afc601f4554766ff50 (patch) | |
tree | e7525c1ef3e47a99ea8c56b96830cef375cd9b11 /crypto/aes/aes_cfb.c | |
parent | 1ed0c6621b082636caf55334b3ada25a6bbcd0c7 (diff) |
In CFB mode, the iv is always encrypted.
Diffstat (limited to 'crypto/aes/aes_cfb.c')
-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]; |