Rewrite ECParameters_dup()
authortb <tb@openbsd.org>
Thu, 4 May 2023 13:51:59 +0000 (13:51 +0000)
committertb <tb@openbsd.org>
Thu, 4 May 2023 13:51:59 +0000 (13:51 +0000)
commit14f5576468937d71389cea4c3543a4a6d648e699
treea0bfca58ba2f17619a78cfca2c99404b4c929833
parente20de6bd7c0826ab97d47fad9ba8fbe4481c03fb
Rewrite ECParameters_dup()

This should leak slightly less than the direct expansion of ASN1_dup_of().
Use freezero() since the DER could contain a private key.

ok jsing
lib/libcrypto/ec/ec_lib.c