Refactor BN_sqr().
authorjsing <jsing@openbsd.org>
Sat, 21 Jan 2023 14:10:46 +0000 (14:10 +0000)
committerjsing <jsing@openbsd.org>
Sat, 21 Jan 2023 14:10:46 +0000 (14:10 +0000)
commitfa0921e7bde805b4554f4013b665e8f5874d4a81
treeff98eb283c204c9b53da8644d3ae6298b743148b
parent14d0cc1888207c1aa262c00a85aa02113d7f8d90
Refactor BN_sqr().

This splits BN_sqr() into two parts, one of which is a separate bn_sqr()
function. This makes the code more readable and managable, while also
providing a better entry point for assembly optimisation.

ok tb@
lib/libcrypto/bn/bn_sqr.c