DOC: Modify one example in EVP_PKEY_fromdata(3)
authorRichard Levitte <levitte@openssl.org>
Tue, 7 Jul 2020 21:36:22 +0000 (23:36 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 6 Sep 2020 18:53:57 +0000 (20:53 +0200)
commitd9ea62c2c29340818d254ca45111749959236e50
tree69d507a4464e7771fb04c1861655f1db82384c95
parentbef763861020f450acbee037f5b02ec656b52ea2
DOC: Modify one example in EVP_PKEY_fromdata(3)

The example to create an EC key from user data didn't show what one
could expect and application to do, especially with regard to how it's
done with raw EC functions.  We therefore refactor it to make proper
use of a BIGNUM where expected, and also use OSSL_PARAM_BLD(3) for
easier handling of the OSSL_PARAM array.

Fixes #12388

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12389)
doc/man3/EVP_PKEY_fromdata.pod