Use correct length for EVP CFB mode ciphers.
authorjsing <jsing@openbsd.org>
Sat, 10 Sep 2022 17:39:47 +0000 (17:39 +0000)
committerjsing <jsing@openbsd.org>
Sat, 10 Sep 2022 17:39:47 +0000 (17:39 +0000)
commit7a606269dcb36c62043465a6e9c3e91542bf07b9
treeed4f48006d0d1b448b6c465421a00f28c3566fc1
parent0cf631b523c0fb1d93f80653356191f6f3eec895
Use correct length for EVP CFB mode ciphers.

The BLOCK_CIPHER_* macros contained a bug where the total length is passed
to the underlying cipher implementation, rather than the length of the
current chunk. Correct this and use the chunk length instead.

Should address the remaining issues reported by Coverity.

ok tb@
lib/libcrypto/evp/e_bf.c
lib/libcrypto/evp/e_camellia.c
lib/libcrypto/evp/e_cast.c
lib/libcrypto/evp/e_gost2814789.c
lib/libcrypto/evp/e_idea.c
lib/libcrypto/evp/e_rc2.c
lib/libcrypto/evp/e_sm4.c