Use a size_t instead of an int for the byte count in BN_swap_ct().
authortb <tb@openbsd.org>
Mon, 23 Jul 2018 18:14:32 +0000 (18:14 +0000)
committertb <tb@openbsd.org>
Mon, 23 Jul 2018 18:14:32 +0000 (18:14 +0000)
commit2a2cbef30a24ad9e078995b0d763740502ebe1f8
tree4dcb9bc32dead8f1c3df025b1107e4eb3d4ea6ce
parent66ed3801fd63ca8372bb74241e31e39c044b64c5
Use a size_t instead of an int for the byte count in BN_swap_ct().
Since bignums use ints for the same purpose, this still uses an int
internally after an overflow check.

Suggested by and discussed with jsing.
ok inoguchi, jsing
lib/libcrypto/bn/bn_lcl.h
lib/libcrypto/bn/bn_lib.c