]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/evp/e_aes.c
Fix some bugs with the cfb1 bitsize handling
[thirdparty/openssl.git] / crypto / evp / e_aes.c
index b45b364466acb8b0b9d0663ac35a72dc3d916e7f..febfe324a3747ab6031f41fec0fcef9408ca8dcb 100644 (file)
@@ -1089,6 +1089,8 @@ static int aes_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
         CRYPTO_cfb128_1_encrypt(in, out, MAXBITCHUNK * 8, &dat->ks,
                                 ctx->iv, &ctx->num, ctx->encrypt, dat->block);
         len -= MAXBITCHUNK;
+        out += MAXBITCHUNK;
+        in  += MAXBITCHUNK;
     }
     if (len)
         CRYPTO_cfb128_1_encrypt(in, out, len * 8, &dat->ks,