Call bn_copy() unconditionally in BN_mul() and BN_sqr()
authortb <tb@openbsd.org>
Thu, 30 Mar 2023 14:28:56 +0000 (14:28 +0000)
committertb <tb@openbsd.org>
Thu, 30 Mar 2023 14:28:56 +0000 (14:28 +0000)
commit3ff1a53503ba45ccd7b5e162aab5d17fe3659e88
tree0a7b36df9f3e55f808ab741bcece18370c44bb6e
parent6092f3ff0e3235de16a86d49f07b47fc70d0bbac
Call bn_copy() unconditionally in BN_mul() and BN_sqr()

bn_copy() does the right thing if source and target are the same, so
there is no need for an additional check.

Requested by jsing
lib/libcrypto/bn/bn_mul.c
lib/libcrypto/bn/bn_sqr.c