summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/aes/aes_cfb.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/aes/aes_cfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/aes/aes_cfb.c b/src/lib/libcrypto/aes/aes_cfb.c
index 9b2917298a..41c2a5ec3d 100644
--- a/src/lib/libcrypto/aes/aes_cfb.c
+++ b/src/lib/libcrypto/aes/aes_cfb.c
@@ -137,7 +137,7 @@ void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out,
137 } else { 137 } else {
138 while (l--) { 138 while (l--) {
139 if (n == 0) { 139 if (n == 0) {
140 AES_decrypt(ivec, ivec, key); 140 AES_encrypt(ivec, ivec, key);
141 } 141 }
142 c = *(in); 142 c = *(in);
143 *(out++) = *(in++) ^ ivec[n]; 143 *(out++) = *(in++) ^ ivec[n];