Stop casting a size_t to a long and then passing it as a size_t.
authorjsing <jsing@openbsd.org>
Tue, 6 Sep 2022 06:17:11 +0000 (06:17 +0000)
committerjsing <jsing@openbsd.org>
Tue, 6 Sep 2022 06:17:11 +0000 (06:17 +0000)
commitd5650aa37da12e3cb57de60add35a885f0755c67
tree5e89d374c33ff524b9f4fdb870dd45bd61e42edf
parent578edbbe3cd48d4ca460ebc68f2b55dfc4315c99
Stop casting a size_t to a long and then passing it as a size_t.

These cipher implementations take a size_t length argument, so stop
casting it to a long.

Found by Coverity.

ok tb@
lib/libcrypto/evp/e_camellia.c
lib/libcrypto/evp/e_gost2814789.c
lib/libcrypto/evp/e_sm4.c