summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_PKEY_new.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/EVP_PKEY_new.3')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_new.323
1 files changed, 11 insertions, 12 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_new.3 b/src/lib/libcrypto/man/EVP_PKEY_new.3
index 3b9611990a..36f3886856 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_new.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_PKEY_new.3,v 1.18 2022/12/14 22:37:07 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_new.3,v 1.19 2024/07/21 08:36:43 tb Exp $
2.\" full merge up to: OpenSSL 4dcfdfce May 27 11:50:05 2020 +0100 2.\" full merge up to: OpenSSL 4dcfdfce May 27 11:50:05 2020 +0100
3.\" 3.\"
4.\" This file is a derived work. 4.\" This file is a derived work.
@@ -66,7 +66,7 @@
66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
67.\" OF THE POSSIBILITY OF SUCH DAMAGE. 67.\" OF THE POSSIBILITY OF SUCH DAMAGE.
68.\" 68.\"
69.Dd $Mdocdate: December 14 2022 $ 69.Dd $Mdocdate: July 21 2024 $
70.Dt EVP_PKEY_NEW 3 70.Dt EVP_PKEY_NEW 3
71.Os 71.Os
72.Sh NAME 72.Sh NAME
@@ -95,20 +95,20 @@
95.Ft EVP_PKEY * 95.Ft EVP_PKEY *
96.Fo EVP_PKEY_new_raw_private_key 96.Fo EVP_PKEY_new_raw_private_key
97.Fa "int type" 97.Fa "int type"
98.Fa "ENGINE *e" 98.Fa "ENGINE *engine"
99.Fa "const unsigned char *rawpriv" 99.Fa "const unsigned char *rawpriv"
100.Fa "size_t rawlen" 100.Fa "size_t rawlen"
101.Fc 101.Fc
102.Ft EVP_PKEY * 102.Ft EVP_PKEY *
103.Fo EVP_PKEY_new_raw_public_key 103.Fo EVP_PKEY_new_raw_public_key
104.Fa "int type" 104.Fa "int type"
105.Fa "ENGINE *e" 105.Fa "ENGINE *engine"
106.Fa "const unsigned char *rawpub" 106.Fa "const unsigned char *rawpub"
107.Fa "size_t rawlen" 107.Fa "size_t rawlen"
108.Fc 108.Fc
109.Ft EVP_PKEY * 109.Ft EVP_PKEY *
110.Fo EVP_PKEY_new_CMAC_key 110.Fo EVP_PKEY_new_CMAC_key
111.Fa "ENGINE *e" 111.Fa "ENGINE *engine"
112.Fa "const unsigned char *rawpriv" 112.Fa "const unsigned char *rawpriv"
113.Fa "size_t rawlen" 113.Fa "size_t rawlen"
114.Fa "const EVP_CIPHER *cipher" 114.Fa "const EVP_CIPHER *cipher"
@@ -116,7 +116,7 @@
116.Ft EVP_PKEY * 116.Ft EVP_PKEY *
117.Fo EVP_PKEY_new_mac_key 117.Fo EVP_PKEY_new_mac_key
118.Fa "int type" 118.Fa "int type"
119.Fa "ENGINE *e" 119.Fa "ENGINE *engine"
120.Fa "const unsigned char *rawpriv" 120.Fa "const unsigned char *rawpriv"
121.Fa "int rawlen" 121.Fa "int rawlen"
122.Fc 122.Fc
@@ -165,12 +165,6 @@ pointer, no action occurs.
165.Fn EVP_PKEY_new_raw_private_key 165.Fn EVP_PKEY_new_raw_private_key
166allocates a new 166allocates a new
167.Vt EVP_PKEY . 167.Vt EVP_PKEY .
168If
169.Fa e
170is
171.Pf non- Dv NULL ,
172the new structure is associated with the engine
173.Fa e .
174The NID of a public key algorithm that supports raw private keys, i.e.\& 168The NID of a public key algorithm that supports raw private keys, i.e.\&
175.Dv EVP_PKEY_HMAC , 169.Dv EVP_PKEY_HMAC ,
176.Dv EVP_PKEY_X25519 , 170.Dv EVP_PKEY_X25519 ,
@@ -184,6 +178,11 @@ bytes of raw private key data of that type in
184.Fa rawpriv . 178.Fa rawpriv .
185The public key data is automatically derived from the given private 179The public key data is automatically derived from the given private
186key data, if appropriate for the algorithm type. 180key data, if appropriate for the algorithm type.
181The
182.Fa ENGINE *engine
183argument is always ignored and passing
184.Dv NULL
185is recommended.
187.Pp 186.Pp
188.Fn EVP_PKEY_new_raw_public_key 187.Fn EVP_PKEY_new_raw_public_key
189works in the same way as 188works in the same way as