Improve EVP_CIPHER_{get,set}_asn1_iv()
authortb <tb@openbsd.org>
Sun, 7 Jan 2024 15:21:04 +0000 (15:21 +0000)
committertb <tb@openbsd.org>
Sun, 7 Jan 2024 15:21:04 +0000 (15:21 +0000)
commit610ca8cacd1fe028d2e1936bcb327d00a74af170
tree8d6b499e9b1943003776e389551fecfad10c9313
parent307dc1ce7d41ff7c7e7ff0c6e9756ef392e0352d
Improve EVP_CIPHER_{get,set}_asn1_iv()

Use iv_len for the variables storing the IV length, formerly l and j.
Remove use of the unnecessary variable i and unindent the whole mess.
Some return values are fishy. That will be addressed in subsequent
commits.

ok jsing
lib/libcrypto/evp/evp_cipher.c