Place public ECDSA API next to the internal methods
authortb <tb@openbsd.org>
Fri, 28 Jul 2023 08:57:46 +0000 (08:57 +0000)
committertb <tb@openbsd.org>
Fri, 28 Jul 2023 08:57:46 +0000 (08:57 +0000)
commit218661de900da92c9972c9c1086ae16097930ac2
tree7df2ee61c2ed05a347893478084d808a3795978a
parent29f18d755b5488b7c4556492da7ee8f1bc262600
Place public ECDSA API next to the internal methods

It is hard to remember that ECDSA_do_{sign,verify}() call ecdsa_sign_sig().
Especially since the distinction to ECDSA_{sign,verify}() isn't clear from
the names. To add to the confusion, the public API is ordered differently
than the methods they call. So in this case it seems tidier to place the
public API next to the methods.

ok jsing
lib/libcrypto/ecdsa/ecdsa.c