Skip to content

Commit

Permalink
Clarify documentation in regards to EC key parameters
Browse files Browse the repository at this point in the history
Also clarify that EVP_PKEY_fromdata ignores parameters that
are unknown or incorrect for given selection.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #18902)
  • Loading branch information
t8m committed Aug 18, 2022
1 parent 3a1596f commit 58135cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/man3/EVP_PKEY_fromdata.pod
Expand Up @@ -53,6 +53,9 @@ the settable parameters that can be used with EVP_PKEY_fromdata().
I<selection> is described in L</Selections>.
See L<OSSL_PARAM(3)> for the use of B<OSSL_PARAM> as parameter descriptor.

Parameters in the I<params> array that are not among the settable parameters
for the given I<selection> are ignored.

=head2 Selections

The following constants can be used for I<selection>:
Expand Down
4 changes: 3 additions & 1 deletion doc/man7/EVP_PKEY-EC.pod
Expand Up @@ -110,7 +110,9 @@ per-operation basis.

=item "pub" (B<OSSL_PKEY_PARAM_PUB_KEY>) <octet string>

The public key value in EC point format.
The public key value in encoded EC point format. This parameter is used
when importing or exporting the public key value with the EVP_PKEY_fromdata()
and EVP_PKEY_todata() functions.

=item "priv" (B<OSSL_PKEY_PARAM_PRIV_KEY>) <unsigned integer>

Expand Down

0 comments on commit 58135cb

Please sign in to comment.