Rework bn_add()/bn_sub() to operate on word arrays.
authorjsing <jsing@openbsd.org>
Wed, 22 Feb 2023 05:46:37 +0000 (05:46 +0000)
committerjsing <jsing@openbsd.org>
Wed, 22 Feb 2023 05:46:37 +0000 (05:46 +0000)
commite7144bbb7aac6d348256e7749fb872177fde8a8c
tree8bdf9a31ed4a612b537ae4ef5732934b5aba27f2
parentcef02a03bdfda22e7aa90ce135df6620f17d5fc5
Rework bn_add()/bn_sub() to operate on word arrays.

Rather than working on BIGNUMs, change bn_add()/bn_sub() to operate on word
arrays that potentially differ in length. This matches the behaviour of
s2n-bignum's bignum_add() and bignum_sub().

ok tb@
lib/libcrypto/bn/arch/amd64/bn_arch.c
lib/libcrypto/bn/bn_add.c
lib/libcrypto/bn/bn_local.h