Re: BN_swap_ct() use size_t for byte count

2018-07-20 Thread Kinichiro Inoguchi
I checked this diff libressl portable build. ok inoguchi@ On Sat, Jul 14, 2018 at 02:30:12PM +0200, Theo Buehler wrote: > As pointed out by jsing, using size_t for nwords would be more > appropriate for the new internal API BN_swap_ct(). Let's switch to it > and cast to an int internally after ch

BN_swap_ct() use size_t for byte count

2018-07-14 Thread Theo Buehler
As pointed out by jsing, using size_t for nwords would be more appropriate for the new internal API BN_swap_ct(). Let's switch to it and cast to an int internally after checking the size to avoid overflow. Index: bn/bn_lib.c === RCS f