Debian Codegraph @

templates/man3/EVP_PKEY_CTX_ctrl.3ssl.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # #-#-#-#-# archlinux: EVP_PKEY_CTX_ctrl.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 #. #-#-#-#-# archlinux: EVP_PKEY_CTX_ctrl.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
22 #. Required to disable full justification in groff 1.23.0.
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-trixie: EVP_PKEY_CTX_ctrl.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #. #-#-#-#-# debian-unstable: EVP_PKEY_CTX_ctrl.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
29 #. ========================================================================
30 #. type: IX
31 #: archlinux debian-trixie debian-unstable
32 #, no-wrap
33 msgid "Title"
34 msgstr ""
35
36 #
37 #. Required to disable full justification in groff 1.23.0.
38 #. ========================================================================
39 #. type: IX
40 #: archlinux
41 #, no-wrap
42 msgid "EVP_PKEY_CTX_CTRL 3ssl"
43 msgstr ""
44
45 #. type: TH
46 #: archlinux debian-trixie debian-unstable
47 #, no-wrap
48 msgid "EVP_PKEY_CTX_CTRL"
49 msgstr ""
50
51 #. type: TH
52 #: archlinux debian-trixie debian-unstable
53 #, no-wrap
54 msgid "2026-04-07"
55 msgstr ""
56
57 #. type: TH
58 #: archlinux debian-unstable
59 #, no-wrap
60 msgid "3.6.2"
61 msgstr ""
62
63 #. type: TH
64 #: archlinux debian-trixie debian-unstable
65 #, no-wrap
66 msgid "OpenSSL"
67 msgstr ""
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable
71 #, no-wrap
72 msgid "NAME"
73 msgstr ""
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable
77 msgid ""
78 "EVP_PKEY_CTX_ctrl, EVP_PKEY_CTX_ctrl_str, EVP_PKEY_CTX_ctrl_uint64, "
79 "EVP_PKEY_CTX_md, EVP_PKEY_CTX_set_signature_md, "
80 "EVP_PKEY_CTX_get_signature_md, EVP_PKEY_CTX_set_mac_key, "
81 "EVP_PKEY_CTX_set_group_name, EVP_PKEY_CTX_get_group_name, "
82 "EVP_PKEY_CTX_set_rsa_padding, EVP_PKEY_CTX_get_rsa_padding, "
83 "EVP_PKEY_CTX_set_rsa_pss_saltlen, EVP_PKEY_CTX_get_rsa_pss_saltlen, "
84 "EVP_PKEY_CTX_set_rsa_keygen_bits, EVP_PKEY_CTX_set_rsa_keygen_pubexp, "
85 "EVP_PKEY_CTX_set1_rsa_keygen_pubexp, EVP_PKEY_CTX_set_rsa_keygen_primes, "
86 "EVP_PKEY_CTX_set_rsa_mgf1_md_name, EVP_PKEY_CTX_set_rsa_mgf1_md, "
87 "EVP_PKEY_CTX_get_rsa_mgf1_md, EVP_PKEY_CTX_get_rsa_mgf1_md_name, "
88 "EVP_PKEY_CTX_set_rsa_oaep_md_name, EVP_PKEY_CTX_set_rsa_oaep_md, "
89 "EVP_PKEY_CTX_get_rsa_oaep_md, EVP_PKEY_CTX_get_rsa_oaep_md_name, "
90 "EVP_PKEY_CTX_set0_rsa_oaep_label, EVP_PKEY_CTX_get0_rsa_oaep_label, "
91 "EVP_PKEY_CTX_set_dsa_paramgen_bits, EVP_PKEY_CTX_set_dsa_paramgen_q_bits, "
92 "EVP_PKEY_CTX_set_dsa_paramgen_md, EVP_PKEY_CTX_set_dsa_paramgen_md_props, "
93 "EVP_PKEY_CTX_set_dsa_paramgen_gindex, EVP_PKEY_CTX_set_dsa_paramgen_type, "
94 "EVP_PKEY_CTX_set_dsa_paramgen_seed, EVP_PKEY_CTX_set_dh_paramgen_prime_len, "
95 "EVP_PKEY_CTX_set_dh_paramgen_subprime_len, "
96 "EVP_PKEY_CTX_set_dh_paramgen_generator, EVP_PKEY_CTX_set_dh_paramgen_type, "
97 "EVP_PKEY_CTX_set_dh_paramgen_gindex, EVP_PKEY_CTX_set_dh_paramgen_seed, "
98 "EVP_PKEY_CTX_set_dh_rfc5114, EVP_PKEY_CTX_set_dhx_rfc5114, "
99 "EVP_PKEY_CTX_set_dh_pad, EVP_PKEY_CTX_set_dh_nid, "
100 "EVP_PKEY_CTX_set_dh_kdf_type, EVP_PKEY_CTX_get_dh_kdf_type, "
101 "EVP_PKEY_CTX_set0_dh_kdf_oid, EVP_PKEY_CTX_get0_dh_kdf_oid, "
102 "EVP_PKEY_CTX_set_dh_kdf_md, EVP_PKEY_CTX_get_dh_kdf_md, "
103 "EVP_PKEY_CTX_set_dh_kdf_outlen, EVP_PKEY_CTX_get_dh_kdf_outlen, "
104 "EVP_PKEY_CTX_set0_dh_kdf_ukm, EVP_PKEY_CTX_get0_dh_kdf_ukm, "
105 "EVP_PKEY_CTX_set_ec_paramgen_curve_nid, EVP_PKEY_CTX_set_ec_param_enc, "
106 "EVP_PKEY_CTX_set_ecdh_cofactor_mode, EVP_PKEY_CTX_get_ecdh_cofactor_mode, "
107 "EVP_PKEY_CTX_set_ecdh_kdf_type, EVP_PKEY_CTX_get_ecdh_kdf_type, "
108 "EVP_PKEY_CTX_set_ecdh_kdf_md, EVP_PKEY_CTX_get_ecdh_kdf_md, "
109 "EVP_PKEY_CTX_set_ecdh_kdf_outlen, EVP_PKEY_CTX_get_ecdh_kdf_outlen, "
110 "EVP_PKEY_CTX_set0_ecdh_kdf_ukm, EVP_PKEY_CTX_get0_ecdh_kdf_ukm, "
111 "EVP_PKEY_CTX_set1_id, EVP_PKEY_CTX_get1_id, EVP_PKEY_CTX_get1_id_len, "
112 "EVP_PKEY_CTX_set_kem_op \\&- algorithm specific control operations"
113 msgstr ""
114
115 #. type: IX
116 #: archlinux debian-trixie debian-unstable
117 #, no-wrap
118 msgid "SYNOPSIS"
119 msgstr ""
120
121 #. type: IX
122 #: archlinux debian-trixie debian-unstable
123 #, no-wrap
124 msgid "Header"
125 msgstr ""
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable
129 #, no-wrap
130 msgid ""
131 "\\& #include E<lt>openssl/evp.hE<gt>\n"
132 "\\&\n"
133 "\\& int EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype,\n"
134 "\\& int cmd, int p1, void *p2);\n"
135 "\\& int EVP_PKEY_CTX_ctrl_uint64(EVP_PKEY_CTX *ctx, int keytype, int optype,\n"
136 "\\& int cmd, uint64_t value);\n"
137 "\\& int EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *type,\n"
138 "\\& const char *value);\n"
139 "\\&\n"
140 "\\& int EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md);\n"
141 "\\&\n"
142 "\\& int EVP_PKEY_CTX_set_signature_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);\n"
143 "\\& int EVP_PKEY_CTX_get_signature_md(EVP_PKEY_CTX *ctx, const EVP_MD **pmd);\n"
144 "\\&\n"
145 "\\& int EVP_PKEY_CTX_set_mac_key(EVP_PKEY_CTX *ctx, const unsigned char *key,\n"
146 "\\& int len);\n"
147 "\\& int EVP_PKEY_CTX_set_group_name(EVP_PKEY_CTX *ctx, const char *name);\n"
148 "\\& int EVP_PKEY_CTX_get_group_name(EVP_PKEY_CTX *ctx, char *name, size_t namelen);\n"
149 "\\&\n"
150 "\\& int EVP_PKEY_CTX_set_kem_op(EVP_PKEY_CTX *ctx, const char *op);\n"
151 "\\&\n"
152 "\\& #include E<lt>openssl/rsa.hE<gt>\n"
153 "\\&\n"
154 "\\& int EVP_PKEY_CTX_set_rsa_padding(EVP_PKEY_CTX *ctx, int pad);\n"
155 "\\& int EVP_PKEY_CTX_get_rsa_padding(EVP_PKEY_CTX *ctx, int *pad);\n"
156 "\\& int EVP_PKEY_CTX_set_rsa_pss_saltlen(EVP_PKEY_CTX *ctx, int saltlen);\n"
157 "\\& int EVP_PKEY_CTX_get_rsa_pss_saltlen(EVP_PKEY_CTX *ctx, int *saltlen);\n"
158 "\\& int EVP_PKEY_CTX_set_rsa_keygen_bits(EVP_PKEY_CTX *ctx, int mbits);\n"
159 "\\& int EVP_PKEY_CTX_set1_rsa_keygen_pubexp(EVP_PKEY_CTX *ctx, BIGNUM *pubexp);\n"
160 "\\& int EVP_PKEY_CTX_set_rsa_keygen_primes(EVP_PKEY_CTX *ctx, int primes);\n"
161 "\\& int EVP_PKEY_CTX_set_rsa_mgf1_md_name(EVP_PKEY_CTX *ctx, const char *mdname,\n"
162 "\\& const char *mdprops);\n"
163 "\\& int EVP_PKEY_CTX_set_rsa_mgf1_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);\n"
164 "\\& int EVP_PKEY_CTX_get_rsa_mgf1_md(EVP_PKEY_CTX *ctx, const EVP_MD **md);\n"
165 "\\& int EVP_PKEY_CTX_get_rsa_mgf1_md_name(EVP_PKEY_CTX *ctx, char *name,\n"
166 "\\& size_t namelen);\n"
167 "\\& int EVP_PKEY_CTX_set_rsa_oaep_md_name(EVP_PKEY_CTX *ctx, const char *mdname,\n"
168 "\\& const char *mdprops);\n"
169 "\\& int EVP_PKEY_CTX_set_rsa_oaep_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);\n"
170 "\\& int EVP_PKEY_CTX_get_rsa_oaep_md(EVP_PKEY_CTX *ctx, const EVP_MD **md);\n"
171 "\\& int EVP_PKEY_CTX_get_rsa_oaep_md_name(EVP_PKEY_CTX *ctx, char *name,\n"
172 "\\& size_t namelen);\n"
173 "\\& int EVP_PKEY_CTX_set0_rsa_oaep_label(EVP_PKEY_CTX *ctx, void *label,\n"
174 "\\& int len);\n"
175 "\\& int EVP_PKEY_CTX_get0_rsa_oaep_label(EVP_PKEY_CTX *ctx, unsigned char **label);\n"
176 "\\&\n"
177 "\\& #include E<lt>openssl/dsa.hE<gt>\n"
178 "\\&\n"
179 "\\& int EVP_PKEY_CTX_set_dsa_paramgen_bits(EVP_PKEY_CTX *ctx, int nbits);\n"
180 "\\& int EVP_PKEY_CTX_set_dsa_paramgen_q_bits(EVP_PKEY_CTX *ctx, int qbits);\n"
181 "\\& int EVP_PKEY_CTX_set_dsa_paramgen_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);\n"
182 "\\& int EVP_PKEY_CTX_set_dsa_paramgen_md_props(EVP_PKEY_CTX *ctx,\n"
183 "\\& const char *md_name,\n"
184 "\\& const char *md_properties);\n"
185 "\\& int EVP_PKEY_CTX_set_dsa_paramgen_type(EVP_PKEY_CTX *ctx, const char *name);\n"
186 "\\& int EVP_PKEY_CTX_set_dsa_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex);\n"
187 "\\& int EVP_PKEY_CTX_set_dsa_paramgen_seed(EVP_PKEY_CTX *ctx,\n"
188 "\\& const unsigned char *seed,\n"
189 "\\& size_t seedlen);\n"
190 "\\&\n"
191 "\\& #include E<lt>openssl/dh.hE<gt>\n"
192 "\\&\n"
193 "\\& int EVP_PKEY_CTX_set_dh_paramgen_prime_len(EVP_PKEY_CTX *ctx, int len);\n"
194 "\\& int EVP_PKEY_CTX_set_dh_paramgen_subprime_len(EVP_PKEY_CTX *ctx, int len);\n"
195 "\\& int EVP_PKEY_CTX_set_dh_paramgen_generator(EVP_PKEY_CTX *ctx, int gen);\n"
196 "\\& int EVP_PKEY_CTX_set_dh_paramgen_type(EVP_PKEY_CTX *ctx, int type);\n"
197 "\\& int EVP_PKEY_CTX_set_dh_pad(EVP_PKEY_CTX *ctx, int pad);\n"
198 "\\& int EVP_PKEY_CTX_set_dh_nid(EVP_PKEY_CTX *ctx, int nid);\n"
199 "\\& int EVP_PKEY_CTX_set_dh_rfc5114(EVP_PKEY_CTX *ctx, int rfc5114);\n"
200 "\\& int EVP_PKEY_CTX_set_dhx_rfc5114(EVP_PKEY_CTX *ctx, int rfc5114);\n"
201 "\\& int EVP_PKEY_CTX_set_dh_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex);\n"
202 "\\& int EVP_PKEY_CTX_set_dh_paramgen_seed(EVP_PKEY_CTX *ctx,\n"
203 "\\& const unsigned char *seed,\n"
204 "\\& size_t seedlen);\n"
205 "\\& int EVP_PKEY_CTX_set_dh_kdf_type(EVP_PKEY_CTX *ctx, int kdf);\n"
206 "\\& int EVP_PKEY_CTX_get_dh_kdf_type(EVP_PKEY_CTX *ctx);\n"
207 "\\& int EVP_PKEY_CTX_set0_dh_kdf_oid(EVP_PKEY_CTX *ctx, ASN1_OBJECT *oid);\n"
208 "\\& int EVP_PKEY_CTX_get0_dh_kdf_oid(EVP_PKEY_CTX *ctx, ASN1_OBJECT **oid);\n"
209 "\\& int EVP_PKEY_CTX_set_dh_kdf_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);\n"
210 "\\& int EVP_PKEY_CTX_get_dh_kdf_md(EVP_PKEY_CTX *ctx, const EVP_MD **md);\n"
211 "\\& int EVP_PKEY_CTX_set_dh_kdf_outlen(EVP_PKEY_CTX *ctx, int len);\n"
212 "\\& int EVP_PKEY_CTX_get_dh_kdf_outlen(EVP_PKEY_CTX *ctx, int *len);\n"
213 "\\& int EVP_PKEY_CTX_set0_dh_kdf_ukm(EVP_PKEY_CTX *ctx, unsigned char *ukm, int len);\n"
214 "\\&\n"
215 "\\& #include E<lt>openssl/ec.hE<gt>\n"
216 "\\&\n"
217 "\\& int EVP_PKEY_CTX_set_ec_paramgen_curve_nid(EVP_PKEY_CTX *ctx, int nid);\n"
218 "\\& int EVP_PKEY_CTX_set_ec_param_enc(EVP_PKEY_CTX *ctx, int param_enc);\n"
219 "\\& int EVP_PKEY_CTX_set_ecdh_cofactor_mode(EVP_PKEY_CTX *ctx, int cofactor_mode);\n"
220 "\\& int EVP_PKEY_CTX_get_ecdh_cofactor_mode(EVP_PKEY_CTX *ctx);\n"
221 "\\& int EVP_PKEY_CTX_set_ecdh_kdf_type(EVP_PKEY_CTX *ctx, int kdf);\n"
222 "\\& int EVP_PKEY_CTX_get_ecdh_kdf_type(EVP_PKEY_CTX *ctx);\n"
223 "\\& int EVP_PKEY_CTX_set_ecdh_kdf_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);\n"
224 "\\& int EVP_PKEY_CTX_get_ecdh_kdf_md(EVP_PKEY_CTX *ctx, const EVP_MD **md);\n"
225 "\\& int EVP_PKEY_CTX_set_ecdh_kdf_outlen(EVP_PKEY_CTX *ctx, int len);\n"
226 "\\& int EVP_PKEY_CTX_get_ecdh_kdf_outlen(EVP_PKEY_CTX *ctx, int *len);\n"
227 "\\& int EVP_PKEY_CTX_set0_ecdh_kdf_ukm(EVP_PKEY_CTX *ctx, unsigned char *ukm, int len);\n"
228 "\\&\n"
229 "\\& int EVP_PKEY_CTX_set1_id(EVP_PKEY_CTX *ctx, void *id, size_t id_len);\n"
230 "\\& int EVP_PKEY_CTX_get1_id(EVP_PKEY_CTX *ctx, void *id);\n"
231 "\\& int EVP_PKEY_CTX_get1_id_len(EVP_PKEY_CTX *ctx, size_t *id_len);\n"
232 msgstr ""
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable
236 msgid ""
237 "The following functions have been deprecated since OpenSSL 3.0, and can be "
238 "hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version "
239 "value, see B<openssl_user_macros>\\|(7):"
240 msgstr ""
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable
244 #, no-wrap
245 msgid ""
246 "\\& #include E<lt>openssl/rsa.hE<gt>\n"
247 "\\&\n"
248 "\\& int EVP_PKEY_CTX_set_rsa_keygen_pubexp(EVP_PKEY_CTX *ctx, BIGNUM *pubexp);\n"
249 "\\&\n"
250 "\\& #include E<lt>openssl/dh.hE<gt>\n"
251 "\\&\n"
252 "\\& int EVP_PKEY_CTX_get0_dh_kdf_ukm(EVP_PKEY_CTX *ctx, unsigned char **ukm);\n"
253 "\\&\n"
254 "\\& #include E<lt>openssl/ec.hE<gt>\n"
255 "\\&\n"
256 "\\& int EVP_PKEY_CTX_get0_ecdh_kdf_ukm(EVP_PKEY_CTX *ctx, unsigned char **ukm);\n"
257 msgstr ""
258
259 #. type: IX
260 #: archlinux debian-trixie debian-unstable
261 #, no-wrap
262 msgid "DESCRIPTION"
263 msgstr ""
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable
267 msgid ""
268 "\\&B<EVP_PKEY_CTX_ctrl()> sends a control operation to the context I<ctx>. "
269 "The key type used must match I<keytype> if it is not -1. The parameter "
270 "I<optype> is a mask indicating which operations the control can be applied "
271 "to. The control command is indicated in I<cmd> and any additional arguments "
272 "in \\&I<p1> and I<p2>."
273 msgstr ""
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable
277 msgid ""
278 "For I<cmd> = B<EVP_PKEY_CTRL_SET_MAC_KEY>, I<p1> is the length of the MAC "
279 "key, and I<p2> is the MAC key. This is used by Poly1305, SipHash, HMAC and "
280 "CMAC."
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable
285 msgid ""
286 "Applications will not normally call B<EVP_PKEY_CTX_ctrl()> directly but will "
287 "instead call one of the algorithm specific functions below."
288 msgstr ""
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable
292 msgid ""
293 "\\&B<EVP_PKEY_CTX_ctrl_uint64()> is a wrapper that directly passes a uint64 "
294 "value as I<p2> to B<EVP_PKEY_CTX_ctrl()>."
295 msgstr ""
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable
299 msgid ""
300 "\\&B<EVP_PKEY_CTX_ctrl_str()> allows an application to send an algorithm "
301 "specific control operation to a context I<ctx> in string form. This is "
302 "intended to be used for options specified on the command line or in text "
303 "files. The commands supported are documented in the openssl utility command "
304 "line pages for the option I<-pkeyopt> which is supported by the "
305 "\\&I<pkeyutl>, I<genpkey> and I<req> commands."
306 msgstr ""
307
308 #. type: Plain text
309 #: archlinux debian-trixie debian-unstable
310 msgid ""
311 "\\&B<EVP_PKEY_CTX_md()> sends a message digest control operation to the "
312 "context \\&I<ctx>. The message digest is specified by its name I<md>."
313 msgstr ""
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable
317 msgid ""
318 "\\&B<EVP_PKEY_CTX_set_signature_md()> sets the message digest type used in a "
319 "signature. It can be used in the RSA, DSA and ECDSA algorithms."
320 msgstr ""
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable
324 msgid ""
325 "\\&B<EVP_PKEY_CTX_get_signature_md()>gets the message digest type used in a "
326 "signature. It can be used in the RSA, DSA and ECDSA algorithms."
327 msgstr ""
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable
331 msgid ""
332 "Key generation typically involves setting up parameters to be used and "
333 "generating the private and public key data. Some algorithm implementations "
334 "allow private key data to be set explicitly using "
335 "B<EVP_PKEY_CTX_set_mac_key()>. In this case key generation is simply the "
336 "process of setting up the parameters for the key and then setting the raw "
337 "key data to the value explicitly. Normally applications would call "
338 "B<EVP_PKEY_new_raw_private_key>\\|(3) or similar functions instead."
339 msgstr ""
340
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable
343 msgid ""
344 "\\&B<EVP_PKEY_CTX_set_mac_key()> can be used with any of the algorithms "
345 "supported by the B<EVP_PKEY_new_raw_private_key>\\|(3) function."
346 msgstr ""
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable
350 msgid ""
351 "\\&B<EVP_PKEY_CTX_set_group_name()> sets the group name to I<name> for "
352 "parameter and key generation. For example for EC keys this will set the "
353 "curve name and for DH keys it will set the name of the finite field group."
354 msgstr ""
355
356 #. type: Plain text
357 #: archlinux
358 msgid ""
359 "\\&B<EVP_PKEY_CTX_get_group_name()> finds the group name that\\*(Aqs "
360 "currently set with I<ctx>, and writes it to the location that I<name> points "
361 "at, as long as its size I<namelen> is large enough to store that name, "
362 "including a terminating NUL byte."
363 msgstr ""
364
365 #. type: IX
366 #: archlinux debian-trixie debian-unstable
367 #, no-wrap
368 msgid "RSA parameters"
369 msgstr ""
370
371 #. type: IX
372 #: archlinux debian-trixie debian-unstable
373 #, no-wrap
374 msgid "Subsection"
375 msgstr ""
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable
379 msgid ""
380 "\\&B<EVP_PKEY_CTX_set_rsa_padding()> sets the RSA padding mode for I<ctx>. "
381 "The I<pad> parameter can take the value B<RSA_PKCS1_PADDING> for PKCS#1 "
382 "padding, B<RSA_NO_PADDING> for no padding, B<RSA_PKCS1_OAEP_PADDING> for "
383 "OAEP padding (encrypt and decrypt only), B<RSA_X931_PADDING> for X9.31 "
384 "padding (signature operations only), B<RSA_PKCS1_PSS_PADDING> (sign and "
385 "verify only) and \\&B<RSA_PKCS1_WITH_TLS_PADDING> for TLS RSA "
386 "ClientKeyExchange message padding (decryption only)."
387 msgstr ""
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable
391 msgid ""
392 "Two RSA padding modes behave differently if "
393 "B<EVP_PKEY_CTX_set_signature_md()> is used. If this function is called for "
394 "PKCS#1 padding the plaintext buffer is an actual digest value and is "
395 "encapsulated in a DigestInfo structure according to PKCS#1 when signing and "
396 "this structure is expected (and stripped off) when verifying. If this "
397 "control is not used with RSA and PKCS#1 padding then the supplied data is "
398 "used directly and not encapsulated. In the case of X9.31 padding for RSA the "
399 "algorithm identifier byte is added or checked and removed if this control is "
400 "called. If it is not called then the first byte of the plaintext buffer is "
401 "expected to be the algorithm identifier byte."
402 msgstr ""
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable
406 msgid ""
407 "\\&B<EVP_PKEY_CTX_get_rsa_padding()> gets the RSA padding mode for I<ctx>."
408 msgstr ""
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable
412 msgid ""
413 "\\&B<EVP_PKEY_CTX_set_rsa_pss_saltlen()> sets the RSA PSS salt length to "
414 "I<saltlen>. As its name implies it is only supported for PSS padding. If "
415 "this function is not called then the salt length is maximized up to the "
416 "digest length when signing and auto detection when verifying. Four special "
417 "values are supported:"
418 msgstr ""
419
420 #. type: IP
421 #: archlinux debian-trixie debian-unstable
422 #, no-wrap
423 msgid "B<RSA_PSS_SALTLEN_DIGEST>"
424 msgstr ""
425
426 #. type: IX
427 #: archlinux debian-trixie debian-unstable
428 #, no-wrap
429 msgid "Item"
430 msgstr ""
431
432 #. type: IX
433 #: archlinux debian-trixie debian-unstable
434 #, no-wrap
435 msgid "RSA_PSS_SALTLEN_DIGEST"
436 msgstr ""
437
438 #. type: Plain text
439 #: archlinux debian-trixie debian-unstable
440 msgid "sets the salt length to the digest length."
441 msgstr ""
442
443 #. type: IP
444 #: archlinux debian-trixie debian-unstable
445 #, no-wrap
446 msgid "B<RSA_PSS_SALTLEN_MAX>"
447 msgstr ""
448
449 #. type: IX
450 #: archlinux debian-trixie debian-unstable
451 #, no-wrap
452 msgid "RSA_PSS_SALTLEN_MAX"
453 msgstr ""
454
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable
457 msgid "sets the salt length to the maximum permissible value."
458 msgstr ""
459
460 #. type: IP
461 #: archlinux debian-trixie debian-unstable
462 #, no-wrap
463 msgid "B<RSA_PSS_SALTLEN_AUTO>"
464 msgstr ""
465
466 #. type: IX
467 #: archlinux debian-trixie debian-unstable
468 #, no-wrap
469 msgid "RSA_PSS_SALTLEN_AUTO"
470 msgstr ""
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable
474 msgid ""
475 "causes the salt length to be automatically determined based on the \\&B<PSS> "
476 "block structure when verifying. When signing, it has the same meaning as "
477 "B<RSA_PSS_SALTLEN_MAX>."
478 msgstr ""
479
480 #. type: IP
481 #: archlinux debian-trixie debian-unstable
482 #, no-wrap
483 msgid "B<RSA_PSS_SALTLEN_AUTO_DIGEST_MAX>"
484 msgstr ""
485
486 #. type: IX
487 #: archlinux debian-trixie debian-unstable
488 #, no-wrap
489 msgid "RSA_PSS_SALTLEN_AUTO_DIGEST_MAX"
490 msgstr ""
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable
494 msgid ""
495 "causes the salt length to be automatically determined based on the B<PSS> "
496 "block structure when verifying, like B<RSA_PSS_SALTLEN_AUTO>. When signing, "
497 "the salt length is maximized up to a maximum of the digest length to comply "
498 "with FIPS 186-4 section 5.5."
499 msgstr ""
500
501 #. type: Plain text
502 #: archlinux debian-trixie debian-unstable
503 msgid ""
504 "\\&B<EVP_PKEY_CTX_get_rsa_pss_saltlen()> gets the RSA PSS salt length for "
505 "I<ctx>. The padding mode must already have been set to "
506 "B<RSA_PKCS1_PSS_PADDING>."
507 msgstr ""
508
509 #. type: Plain text
510 #: archlinux debian-trixie debian-unstable
511 msgid ""
512 "\\&B<EVP_PKEY_CTX_set_rsa_keygen_bits()> sets the RSA key length for RSA key "
513 "generation to I<bits>. If not specified 2048 bits is used."
514 msgstr ""
515
516 #. type: Plain text
517 #: archlinux debian-trixie debian-unstable
518 msgid ""
519 "\\&B<EVP_PKEY_CTX_set1_rsa_keygen_pubexp()> sets the public exponent value "
520 "for RSA key generation to the value stored in I<pubexp>. Currently it should "
521 "be an odd integer. In accordance with the OpenSSL naming convention, the "
522 "I<pubexp> pointer must be freed independently of the EVP_PKEY_CTX (ie, it is "
523 "internally copied). If not specified 65537 is used."
524 msgstr ""
525
526 #. type: Plain text
527 #: archlinux debian-trixie debian-unstable
528 msgid ""
529 "\\&B<EVP_PKEY_CTX_set_rsa_keygen_pubexp()> does the same as "
530 "\\&B<EVP_PKEY_CTX_set1_rsa_keygen_pubexp()> except that there is no internal "
531 "copy and therefore I<pubexp> should not be modified or freed after the call."
532 msgstr ""
533
534 #. type: Plain text
535 #: archlinux debian-trixie debian-unstable
536 msgid ""
537 "\\&B<EVP_PKEY_CTX_set_rsa_keygen_primes()> sets the number of primes for RSA "
538 "key generation to I<primes>. If not specified 2 is used."
539 msgstr ""
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable
543 msgid ""
544 "\\&B<EVP_PKEY_CTX_set_rsa_mgf1_md_name()> sets the MGF1 digest for RSA "
545 "padding schemes to the digest named I<mdname>. If the RSA algorithm "
546 "implementation for the selected provider supports it then the digest will be "
547 "fetched using the properties I<mdprops>. If not explicitly set the signing "
548 "digest is used. The padding mode must have been set to "
549 "B<RSA_PKCS1_OAEP_PADDING> or B<RSA_PKCS1_PSS_PADDING>."
550 msgstr ""
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable
554 msgid ""
555 "\\&B<EVP_PKEY_CTX_set_rsa_mgf1_md()> does the same as "
556 "\\&B<EVP_PKEY_CTX_set_rsa_mgf1_md_name()> except that the name of the digest "
557 "is inferred from the supplied I<md> and it is not possible to specify any "
558 "properties."
559 msgstr ""
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable
563 msgid ""
564 "\\&B<EVP_PKEY_CTX_get_rsa_mgf1_md_name()> gets the name of the MGF1 digest "
565 "algorithm for I<ctx>. If not explicitly set the signing digest is used. The "
566 "padding mode must have been set to B<RSA_PKCS1_OAEP_PADDING> or "
567 "\\&B<RSA_PKCS1_PSS_PADDING>."
568 msgstr ""
569
570 #. type: Plain text
571 #: archlinux debian-trixie debian-unstable
572 msgid ""
573 "\\&B<EVP_PKEY_CTX_get_rsa_mgf1_md()> does the same as "
574 "\\&B<EVP_PKEY_CTX_get_rsa_mgf1_md_name()> except that it returns a pointer "
575 "to an EVP_MD object instead. Note that only known, built-in EVP_MD objects "
576 "will be returned. The EVP_MD object may be NULL if the digest is not one of "
577 "these (such as a digest only implemented in a third party provider)."
578 msgstr ""
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable
582 msgid ""
583 "\\&B<EVP_PKEY_CTX_set_rsa_oaep_md_name()> sets the message digest type used "
584 "in RSA OAEP to the digest named I<mdname>. If the RSA algorithm "
585 "implementation for the selected provider supports it then the digest will be "
586 "fetched using the properties I<mdprops>. The padding mode must have been set "
587 "to \\&B<RSA_PKCS1_OAEP_PADDING>."
588 msgstr ""
589
590 #. type: Plain text
591 #: archlinux debian-trixie debian-unstable
592 msgid ""
593 "\\&B<EVP_PKEY_CTX_set_rsa_oaep_md()> does the same as "
594 "\\&B<EVP_PKEY_CTX_set_rsa_oaep_md_name()> except that the name of the digest "
595 "is inferred from the supplied I<md> and it is not possible to specify any "
596 "properties."
597 msgstr ""
598
599 #. type: Plain text
600 #: archlinux debian-trixie debian-unstable
601 msgid ""
602 "\\&B<EVP_PKEY_CTX_get_rsa_oaep_md_name()> gets the message digest algorithm "
603 "name used in RSA OAEP and stores it in the buffer I<name> which is of size "
604 "I<namelen>. The padding mode must have been set to "
605 "\\&B<RSA_PKCS1_OAEP_PADDING>. The buffer should be sufficiently large for "
606 "any expected digest algorithm names or the function will fail."
607 msgstr ""
608
609 #. type: Plain text
610 #: archlinux debian-trixie debian-unstable
611 msgid ""
612 "\\&B<EVP_PKEY_CTX_get_rsa_oaep_md()> does the same as "
613 "\\&B<EVP_PKEY_CTX_get_rsa_oaep_md_name()> except that it returns a pointer "
614 "to an EVP_MD object instead. Note that only known, built-in EVP_MD objects "
615 "will be returned. The EVP_MD object may be NULL if the digest is not one of "
616 "these (such as a digest only implemented in a third party provider)."
617 msgstr ""
618
619 #. type: Plain text
620 #: archlinux debian-trixie debian-unstable
621 msgid ""
622 "\\&B<EVP_PKEY_CTX_set0_rsa_oaep_label()> sets the RSA OAEP label to binary "
623 "data \\&I<label> and its length in bytes to I<len>. If I<label> is NULL or "
624 "I<len> is 0, the label is cleared. The library takes ownership of the label "
625 "so the caller should not free the original memory pointed to by I<label>. "
626 "The padding mode must have been set to B<RSA_PKCS1_OAEP_PADDING>."
627 msgstr ""
628
629 #. type: Plain text
630 #: archlinux debian-trixie debian-unstable
631 msgid ""
632 "\\&B<EVP_PKEY_CTX_get0_rsa_oaep_label()> gets the RSA OAEP label to "
633 "\\&I<label>. The return value is the label length. The padding mode must "
634 "have been set to B<RSA_PKCS1_OAEP_PADDING>. The resulting pointer is owned "
635 "by the library and should not be freed by the caller."
636 msgstr ""
637
638 #. type: Plain text
639 #: archlinux debian-trixie debian-unstable
640 msgid ""
641 "\\&B<RSA_PKCS1_WITH_TLS_PADDING> is used when decrypting an RSA encrypted "
642 "TLS pre-master secret in a TLS ClientKeyExchange message. It is the same as "
643 "RSA_PKCS1_PADDING except that it additionally verifies that the result is "
644 "the correct length and the first two bytes are the protocol version "
645 "initially requested by the client. If the encrypted content is publicly "
646 "invalid then the decryption will fail. However, if the padding checks fail "
647 "then decryption will still appear to succeed but a random TLS premaster "
648 "secret will be returned instead. This padding mode accepts two parameters "
649 "which can be set using the \\&B<EVP_PKEY_CTX_set_params>\\|(3) function. "
650 "These are OSSL_ASYM_CIPHER_PARAM_TLS_CLIENT_VERSION and "
651 "OSSL_ASYM_CIPHER_PARAM_TLS_NEGOTIATED_VERSION, both of which are expected to "
652 "be unsigned integers. Normally only the first of these will be set and "
653 "represents the TLS protocol version that was first requested by the client "
654 "(e.g. 0x0303 for TLSv1.2, 0x0302 for TLSv1.1 etc). Historically some buggy "
655 "clients would use the negotiated protocol version instead of the protocol "
656 "version first requested. If this behaviour should be tolerated then "
657 "OSSL_ASYM_CIPHER_PARAM_TLS_NEGOTIATED_VERSION should be set to the actual "
658 "negotiated protocol version. Otherwise it should be left unset."
659 msgstr ""
660
661 #. type: Plain text
662 #: archlinux
663 msgid ""
664 "Similarly to the B<RSA_PKCS1_WITH_TLS_PADDING> above, since OpenSSL version "
665 "3.2.0, the use of B<RSA_PKCS1_PADDING> will return a randomly generated "
666 "message instead of padding errors in case padding checks fail. Applications "
667 "that want to remain secure while using earlier versions of OpenSSL, or a "
668 "provider that doesn\\*(Aqt implement the implicit rejection mechanism, still "
669 "need to handle both the error code from the RSA decryption operation and the "
670 "returned message in a side channel secure manner. This protection against "
671 "Bleichenbacher attacks can be disabled by setting "
672 "\\&B<OSSL_ASYM_CIPHER_PARAM_IMPLICIT_REJECTION> (an unsigned integer) to 0."
673 msgstr ""
674
675 #. type: IX
676 #: archlinux debian-trixie debian-unstable
677 #, no-wrap
678 msgid "DSA parameters"
679 msgstr ""
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable
683 msgid ""
684 "\\&B<EVP_PKEY_CTX_set_dsa_paramgen_bits()> sets the number of bits used for "
685 "DSA parameter generation to B<nbits>. If not specified, 2048 is used."
686 msgstr ""
687
688 #. type: Plain text
689 #: archlinux debian-trixie debian-unstable
690 msgid ""
691 "\\&B<EVP_PKEY_CTX_set_dsa_paramgen_q_bits()> sets the number of bits in the "
692 "subprime parameter I<q> for DSA parameter generation to I<qbits>. If not "
693 "specified, 224 is used. If a digest function is specified below, this "
694 "parameter is ignored and instead, the number of bits in I<q> matches the "
695 "size of the digest."
696 msgstr ""
697
698 #. type: Plain text
699 #: archlinux debian-trixie debian-unstable
700 msgid ""
701 "\\&B<EVP_PKEY_CTX_set_dsa_paramgen_md()> sets the digest function used for "
702 "DSA parameter generation to I<md>. If not specified, one of SHA-1, SHA-224, "
703 "or SHA-256 is selected to match the bit length of I<q> above."
704 msgstr ""
705
706 #. type: Plain text
707 #: archlinux
708 msgid ""
709 "\\&B<EVP_PKEY_CTX_set_dsa_paramgen_md_props()> sets the digest function used "
710 "for DSA parameter generation using I<md_name> and I<md_properties> to "
711 "retrieve the digest from a provider. If not specified, I<md_name> will be "
712 "set to one of SHA-1, SHA-224, or SHA-256 depending on the bit length of I<q> "
713 "above. I<md_properties> is a property query string that has a default value "
714 "of \\*(Aq\\*(Aq if not specified."
715 msgstr ""
716
717 #. type: Plain text
718 #: archlinux debian-trixie debian-unstable
719 msgid ""
720 "\\&B<EVP_PKEY_CTX_set_dsa_paramgen_gindex()> sets the I<gindex> used by the "
721 "generator G. The default value is -1 which uses unverifiable g, otherwise a "
722 "positive value uses verifiable g. This value must be saved if key validation "
723 "of g is required, since it is not part of a persisted key."
724 msgstr ""
725
726 #. type: Plain text
727 #: archlinux debian-trixie debian-unstable
728 msgid ""
729 "\\&B<EVP_PKEY_CTX_set_dsa_paramgen_seed()> sets the I<seed> to use for "
730 "generation rather than using a randomly generated value for the seed. This "
731 "is useful for testing purposes only and can fail if the seed does not "
732 "produce primes for both p & q on its first iteration. This value must be "
733 "saved if key validation of p, q, and verifiable g are required, since it is "
734 "not part of a persisted key."
735 msgstr ""
736
737 #. type: Plain text
738 #: archlinux debian-trixie debian-unstable
739 msgid ""
740 "\\&B<EVP_PKEY_CTX_set_dsa_paramgen_type()> sets the generation type to use "
741 "FIPS186-4 generation if I<name> is \"fips186_4\", or FIPS186-2 generation if "
742 "I<name> is \"fips186_2\". The default value for the default provider is "
743 "\"fips186_2\". The default value for the FIPS provider is \"fips186_4\"."
744 msgstr ""
745
746 #. type: IX
747 #: archlinux debian-trixie debian-unstable
748 #, no-wrap
749 msgid "DH parameters"
750 msgstr ""
751
752 #. type: Plain text
753 #: archlinux debian-trixie debian-unstable
754 msgid ""
755 "\\&B<EVP_PKEY_CTX_set_dh_paramgen_prime_len()> sets the length of the DH "
756 "prime parameter I<p> for DH parameter generation. If this function is not "
757 "called then 2048 is used. Only accepts lengths greater than or equal to 256."
758 msgstr ""
759
760 #. type: Plain text
761 #: archlinux debian-trixie debian-unstable
762 msgid ""
763 "\\&B<EVP_PKEY_CTX_set_dh_paramgen_subprime_len()> sets the length of the DH "
764 "optional subprime parameter I<q> for DH parameter generation. The default is "
765 "256 if the prime is at least 2048 bits long or 160 otherwise. The DH "
766 "paramgen type must have been set to \"fips186_4\"."
767 msgstr ""
768
769 #. type: Plain text
770 #: archlinux debian-trixie debian-unstable
771 msgid ""
772 "\\&B<EVP_PKEY_CTX_set_dh_paramgen_generator()> sets DH generator to I<gen> "
773 "for DH parameter generation. If not specified 2 is used."
774 msgstr ""
775
776 #. type: Plain text
777 #: archlinux debian-trixie debian-unstable
778 msgid ""
779 "\\&B<EVP_PKEY_CTX_set_dh_paramgen_type()> sets the key type for DH parameter "
780 "generation. The supported parameters are:"
781 msgstr ""
782
783 #. type: IP
784 #: archlinux debian-trixie debian-unstable
785 #, no-wrap
786 msgid "B<DH_PARAMGEN_TYPE_GROUP>"
787 msgstr ""
788
789 #. type: IX
790 #: archlinux debian-trixie debian-unstable
791 #, no-wrap
792 msgid "DH_PARAMGEN_TYPE_GROUP"
793 msgstr ""
794
795 #. type: Plain text
796 #: archlinux debian-trixie debian-unstable
797 msgid ""
798 "Use a named group. If only the safe prime parameter I<p> is set this can be "
799 "used to select a ffdhe safe prime group of the correct size."
800 msgstr ""
801
802 #. type: IP
803 #: archlinux debian-trixie debian-unstable
804 #, no-wrap
805 msgid "B<DH_PARAMGEN_TYPE_FIPS_186_4>"
806 msgstr ""
807
808 #. type: IX
809 #: archlinux debian-trixie debian-unstable
810 #, no-wrap
811 msgid "DH_PARAMGEN_TYPE_FIPS_186_4"
812 msgstr ""
813
814 #. type: Plain text
815 #: archlinux debian-trixie debian-unstable
816 msgid "FIPS186-4 FFC parameter generator."
817 msgstr ""
818
819 #. type: IP
820 #: archlinux debian-trixie debian-unstable
821 #, no-wrap
822 msgid "B<DH_PARAMGEN_TYPE_FIPS_186_2>"
823 msgstr ""
824
825 #. type: IX
826 #: archlinux debian-trixie debian-unstable
827 #, no-wrap
828 msgid "DH_PARAMGEN_TYPE_FIPS_186_2"
829 msgstr ""
830
831 #. type: Plain text
832 #: archlinux debian-trixie debian-unstable
833 msgid "FIPS186-2 FFC parameter generator (X9.42 DH)."
834 msgstr ""
835
836 #. type: IP
837 #: archlinux debian-trixie debian-unstable
838 #, no-wrap
839 msgid "B<DH_PARAMGEN_TYPE_GENERATOR>"
840 msgstr ""
841
842 #. type: IX
843 #: archlinux debian-trixie debian-unstable
844 #, no-wrap
845 msgid "DH_PARAMGEN_TYPE_GENERATOR"
846 msgstr ""
847
848 #. type: Plain text
849 #: archlinux debian-trixie debian-unstable
850 msgid "Uses a safe prime generator g (PKCS#3 format)."
851 msgstr ""
852
853 #. type: Plain text
854 #: archlinux debian-trixie debian-unstable
855 msgid ""
856 "The default in the default provider is B<DH_PARAMGEN_TYPE_GENERATOR> for the "
857 "\"DH\" keytype, and B<DH_PARAMGEN_TYPE_FIPS_186_2> for the \"DHX\" keytype. "
858 "In the FIPS provider the default value is B<DH_PARAMGEN_TYPE_GROUP> for the "
859 "\"DH\" keytype and E<lt>B<DH_PARAMGEN_TYPE_FIPS_186_4> for the \"DHX\" "
860 "keytype."
861 msgstr ""
862
863 #. type: Plain text
864 #: archlinux debian-trixie debian-unstable
865 msgid ""
866 "\\&B<EVP_PKEY_CTX_set_dh_paramgen_gindex()> sets the I<gindex> used by the "
867 "generator G. The default value is -1 which uses unverifiable g, otherwise a "
868 "positive value uses verifiable g. This value must be saved if key validation "
869 "of g is required, since it is not part of a persisted key."
870 msgstr ""
871
872 #. type: Plain text
873 #: archlinux debian-trixie debian-unstable
874 msgid ""
875 "\\&B<EVP_PKEY_CTX_set_dh_paramgen_seed()> sets the I<seed> to use for "
876 "generation rather than using a randomly generated value for the seed. This "
877 "is useful for testing purposes only and can fail if the seed does not "
878 "produce primes for both p & q on its first iteration. This value must be "
879 "saved if key validation of p, q, and verifiable g are required, since it is "
880 "not part of a persisted key."
881 msgstr ""
882
883 #. type: Plain text
884 #: archlinux debian-trixie debian-unstable
885 msgid ""
886 "\\&B<EVP_PKEY_CTX_set_dh_pad()> sets the DH padding mode. If I<pad> is 1 "
887 "the shared secret is padded with zeros up to the size of the DH prime I<p>. "
888 "If I<pad> is zero (the default) then no padding is performed."
889 msgstr ""
890
891 #. type: Plain text
892 #: archlinux debian-trixie debian-unstable
893 msgid ""
894 "\\&B<EVP_PKEY_CTX_set_dh_nid()> sets the DH parameters to values "
895 "corresponding to \\&I<nid> as defined in RFC7919 or RFC3526. The I<nid> "
896 "parameter must be \\&B<NID_ffdhe2048>, B<NID_ffdhe3072>, B<NID_ffdhe4096>, "
897 "B<NID_ffdhe6144>, \\&B<NID_ffdhe8192>, B<NID_modp_1536>, B<NID_modp_2048>, "
898 "B<NID_modp_3072>, \\&B<NID_modp_4096>, B<NID_modp_6144>, B<NID_modp_8192> or "
899 "B<NID_undef> to clear the stored value. This function can be called during "
900 "parameter or key generation. The nid parameter and the rfc5114 parameter "
901 "are mutually exclusive."
902 msgstr ""
903
904 #. type: Plain text
905 #: archlinux debian-trixie debian-unstable
906 msgid ""
907 "\\&B<EVP_PKEY_CTX_set_dh_rfc5114()> and B<EVP_PKEY_CTX_set_dhx_rfc5114()> "
908 "both set the DH parameters to the values defined in RFC5114. The I<rfc5114> "
909 "parameter must be 1, 2 or 3 corresponding to RFC5114 sections 2.1, 2.2 and "
910 "2.3. or 0 to clear the stored value. This macro can be called during "
911 "parameter generation. The \\&I<ctx> must have a key type of "
912 "B<EVP_PKEY_DHX>. The rfc5114 parameter and the nid parameter are mutually "
913 "exclusive."
914 msgstr ""
915
916 #. type: IX
917 #: archlinux debian-trixie debian-unstable
918 #, no-wrap
919 msgid "DH key derivation function parameters"
920 msgstr ""
921
922 #. type: Plain text
923 #: archlinux debian-trixie debian-unstable
924 msgid ""
925 "Note that all of the following functions require that the I<ctx> parameter "
926 "has a private key type of B<EVP_PKEY_DHX>. When using key derivation, the "
927 "output of \\&B<EVP_PKEY_derive()> is the output of the KDF instead of the DH "
928 "shared secret. The KDF output is typically used as a Key Encryption Key "
929 "(KEK) that in turn encrypts a Content Encryption Key (CEK)."
930 msgstr ""
931
932 #. type: Plain text
933 #: archlinux debian-trixie debian-unstable
934 msgid ""
935 "\\&B<EVP_PKEY_CTX_set_dh_kdf_type()> sets the key derivation function type "
936 "to I<kdf> for DH key derivation. Possible values are B<EVP_PKEY_DH_KDF_NONE> "
937 "and \\&B<EVP_PKEY_DH_KDF_X9_42> which uses the key derivation specified in "
938 "RFC2631 (based on the keying algorithm described in X9.42). When using key "
939 "derivation, the I<kdf_oid>, I<kdf_md> and I<kdf_outlen> parameters must also "
940 "be specified."
941 msgstr ""
942
943 #. type: Plain text
944 #: archlinux debian-trixie debian-unstable
945 msgid ""
946 "\\&B<EVP_PKEY_CTX_get_dh_kdf_type()> gets the key derivation function type "
947 "for I<ctx> used for DH key derivation. Possible values are "
948 "B<EVP_PKEY_DH_KDF_NONE> and \\&B<EVP_PKEY_DH_KDF_X9_42>."
949 msgstr ""
950
951 #. type: Plain text
952 #: archlinux debian-trixie debian-unstable
953 msgid ""
954 "\\&B<EVP_PKEY_CTX_set0_dh_kdf_oid()> sets the key derivation function object "
955 "identifier to I<oid> for DH key derivation. This OID should identify the "
956 "algorithm to be used with the Content Encryption Key. The library takes "
957 "ownership of the object identifier so the caller should not free the "
958 "original memory pointed to by I<oid>."
959 msgstr ""
960
961 #. type: Plain text
962 #: archlinux debian-trixie debian-unstable
963 msgid ""
964 "\\&B<EVP_PKEY_CTX_get0_dh_kdf_oid()> gets the key derivation function oid "
965 "for I<ctx> used for DH key derivation. The resulting pointer is owned by the "
966 "library and should not be freed by the caller."
967 msgstr ""
968
969 #. type: Plain text
970 #: archlinux debian-trixie debian-unstable
971 msgid ""
972 "\\&B<EVP_PKEY_CTX_set_dh_kdf_md()> sets the key derivation function message "
973 "digest to \\&I<md> for DH key derivation. Note that RFC2631 specifies that "
974 "this digest should be SHA1 but OpenSSL tolerates other digests."
975 msgstr ""
976
977 #. type: Plain text
978 #: archlinux debian-trixie debian-unstable
979 msgid ""
980 "\\&B<EVP_PKEY_CTX_get_dh_kdf_md()> gets the key derivation function message "
981 "digest for \\&I<ctx> used for DH key derivation."
982 msgstr ""
983
984 #. type: Plain text
985 #: archlinux debian-trixie debian-unstable
986 msgid ""
987 "\\&B<EVP_PKEY_CTX_set_dh_kdf_outlen()> sets the key derivation function "
988 "output length to I<len> for DH key derivation."
989 msgstr ""
990
991 #. type: Plain text
992 #: archlinux debian-trixie debian-unstable
993 msgid ""
994 "\\&B<EVP_PKEY_CTX_get_dh_kdf_outlen()> gets the key derivation function "
995 "output length for I<ctx> used for DH key derivation."
996 msgstr ""
997
998 #. type: Plain text
999 #: archlinux debian-trixie debian-unstable
1000 msgid ""
1001 "\\&B<EVP_PKEY_CTX_set0_dh_kdf_ukm()> sets the user key material to I<ukm> "
1002 "and its length to I<len> for DH key derivation. This parameter is optional "
1003 "and corresponds to the partyAInfo field in RFC2631 terms. The specification "
1004 "requires that it is 512 bits long but this is not enforced by OpenSSL. The "
1005 "library takes ownership of the user key material so the caller should not "
1006 "free the original memory pointed to by I<ukm>."
1007 msgstr ""
1008
1009 #. type: Plain text
1010 #: archlinux debian-trixie debian-unstable
1011 msgid ""
1012 "\\&B<EVP_PKEY_CTX_get0_dh_kdf_ukm()> gets the user key material for I<ctx>. "
1013 "The return value is the user key material length. The resulting pointer is "
1014 "owned by the library and should not be freed by the caller."
1015 msgstr ""
1016
1017 #. type: IX
1018 #: archlinux debian-trixie debian-unstable
1019 #, no-wrap
1020 msgid "EC parameters"
1021 msgstr ""
1022
1023 #. type: Plain text
1024 #: archlinux debian-trixie debian-unstable
1025 msgid ""
1026 "Use B<EVP_PKEY_CTX_set_group_name()> (described above) to set the curve name "
1027 "to \\&I<name> for parameter and key generation."
1028 msgstr ""
1029
1030 #. type: Plain text
1031 #: archlinux debian-trixie debian-unstable
1032 msgid ""
1033 "\\&B<EVP_PKEY_CTX_set_ec_paramgen_curve_nid()> does the same as "
1034 "\\&B<EVP_PKEY_CTX_set_group_name()>, but is specific to EC and uses a I<nid> "
1035 "rather than a name string."
1036 msgstr ""
1037
1038 #. type: Plain text
1039 #: archlinux debian-trixie debian-unstable
1040 msgid ""
1041 "For EC parameter generation, one of B<EVP_PKEY_CTX_set_group_name()> or "
1042 "B<EVP_PKEY_CTX_set_ec_paramgen_curve_nid()> must be called or an error "
1043 "occurs because there is no default curve. These function can also be called "
1044 "to set the curve explicitly when generating an EC key."
1045 msgstr ""
1046
1047 #. type: Plain text
1048 #: archlinux
1049 msgid ""
1050 "\\&B<EVP_PKEY_CTX_get_group_name()> (described above) can be used to obtain "
1051 "the curve name that\\*(Aqs currently set with I<ctx>."
1052 msgstr ""
1053
1054 #. type: Plain text
1055 #: archlinux debian-trixie debian-unstable
1056 msgid ""
1057 "\\&B<EVP_PKEY_CTX_set_ec_param_enc()> sets the EC parameter encoding to "
1058 "I<param_enc> when generating EC parameters or an EC key. The encoding can be "
1059 "\\&B<OPENSSL_EC_EXPLICIT_CURVE> for explicit parameters (the default in "
1060 "versions of OpenSSL before 1.1.0) or B<OPENSSL_EC_NAMED_CURVE> to use named "
1061 "curve form. For maximum compatibility the named curve form should be used. "
1062 "Note: the \\&B<OPENSSL_EC_NAMED_CURVE> value was added in OpenSSL 1.1.0; "
1063 "previous versions should use 0 instead."
1064 msgstr ""
1065
1066 #. type: IX
1067 #: archlinux debian-trixie debian-unstable
1068 #, no-wrap
1069 msgid "ECDH parameters"
1070 msgstr ""
1071
1072 #. type: Plain text
1073 #: archlinux debian-trixie debian-unstable
1074 msgid ""
1075 "\\&B<EVP_PKEY_CTX_set_ecdh_cofactor_mode()> sets the cofactor mode to "
1076 "I<cofactor_mode> for ECDH key derivation. Possible values are 1 to enable "
1077 "cofactor key derivation, 0 to disable it and -1 to clear the stored cofactor "
1078 "mode and fallback to the private key cofactor mode."
1079 msgstr ""
1080
1081 #. type: Plain text
1082 #: archlinux debian-trixie debian-unstable
1083 msgid ""
1084 "\\&B<EVP_PKEY_CTX_get_ecdh_cofactor_mode()> returns the cofactor mode for "
1085 "I<ctx> used for ECDH key derivation. Possible values are 1 when cofactor key "
1086 "derivation is enabled and 0 otherwise."
1087 msgstr ""
1088
1089 #. type: IX
1090 #: archlinux debian-trixie debian-unstable
1091 #, no-wrap
1092 msgid "ECDH key derivation function parameters"
1093 msgstr ""
1094
1095 #. type: Plain text
1096 #: archlinux debian-trixie debian-unstable
1097 msgid ""
1098 "\\&B<EVP_PKEY_CTX_set_ecdh_kdf_type()> sets the key derivation function type "
1099 "to \\&I<kdf> for ECDH key derivation. Possible values are "
1100 "B<EVP_PKEY_ECDH_KDF_NONE> and B<EVP_PKEY_ECDH_KDF_X9_63> which uses the key "
1101 "derivation specified in X9.63. When using key derivation, the I<kdf_md> and "
1102 "I<kdf_outlen> parameters must also be specified."
1103 msgstr ""
1104
1105 #. type: Plain text
1106 #: archlinux debian-trixie debian-unstable
1107 msgid ""
1108 "\\&B<EVP_PKEY_CTX_get_ecdh_kdf_type()> returns the key derivation function "
1109 "type for \\&I<ctx> used for ECDH key derivation. Possible values are "
1110 "\\&B<EVP_PKEY_ECDH_KDF_NONE> and B<EVP_PKEY_ECDH_KDF_X9_63>."
1111 msgstr ""
1112
1113 #. type: Plain text
1114 #: archlinux debian-trixie debian-unstable
1115 msgid ""
1116 "\\&B<EVP_PKEY_CTX_set_ecdh_kdf_md()> sets the key derivation function "
1117 "message digest to I<md> for ECDH key derivation. Note that X9.63 specifies "
1118 "that this digest should be SHA1 but OpenSSL tolerates other digests."
1119 msgstr ""
1120
1121 #. type: Plain text
1122 #: archlinux debian-trixie debian-unstable
1123 msgid ""
1124 "\\&B<EVP_PKEY_CTX_get_ecdh_kdf_md()> gets the key derivation function "
1125 "message digest for I<ctx> used for ECDH key derivation."
1126 msgstr ""
1127
1128 #. type: Plain text
1129 #: archlinux debian-trixie debian-unstable
1130 msgid ""
1131 "\\&B<EVP_PKEY_CTX_set_ecdh_kdf_outlen()> sets the key derivation function "
1132 "output length to I<len> for ECDH key derivation."
1133 msgstr ""
1134
1135 #. type: Plain text
1136 #: archlinux debian-trixie debian-unstable
1137 msgid ""
1138 "\\&B<EVP_PKEY_CTX_get_ecdh_kdf_outlen()> gets the key derivation function "
1139 "output length for I<ctx> used for ECDH key derivation."
1140 msgstr ""
1141
1142 #. type: Plain text
1143 #: archlinux debian-trixie debian-unstable
1144 msgid ""
1145 "\\&B<EVP_PKEY_CTX_set0_ecdh_kdf_ukm()> sets the user key material to I<ukm> "
1146 "for ECDH key derivation. This parameter is optional and corresponds to the "
1147 "shared info in X9.63 terms. The library takes ownership of the user key "
1148 "material so the caller should not free the original memory pointed to by "
1149 "I<ukm>."
1150 msgstr ""
1151
1152 #. type: Plain text
1153 #: archlinux debian-trixie debian-unstable
1154 msgid ""
1155 "\\&B<EVP_PKEY_CTX_get0_ecdh_kdf_ukm()> gets the user key material for "
1156 "I<ctx>. The return value is the user key material length. The resulting "
1157 "pointer is owned by the library and should not be freed by the caller."
1158 msgstr ""
1159
1160 #. type: IX
1161 #: archlinux debian-trixie debian-unstable
1162 #, no-wrap
1163 msgid "Other parameters"
1164 msgstr ""
1165
1166 #. type: Plain text
1167 #: archlinux debian-trixie debian-unstable
1168 msgid ""
1169 "\\&B<EVP_PKEY_CTX_set1_id()>, B<EVP_PKEY_CTX_get1_id()> and "
1170 "B<EVP_PKEY_CTX_get1_id_len()> are used to manipulate the special identifier "
1171 "field for specific signature algorithms such as SM2. The "
1172 "B<EVP_PKEY_CTX_set1_id()> sets an ID pointed by I<id> with the length "
1173 "I<id_len> to the library. The library takes a copy of the id so that the "
1174 "caller can safely free the original memory pointed to by I<id>. "
1175 "\\&B<EVP_PKEY_CTX_get1_id_len()> returns the length of the ID set via a "
1176 "previous call to B<EVP_PKEY_CTX_set1_id()>. The length is usually used to "
1177 "allocate adequate memory for further calls to B<EVP_PKEY_CTX_get1_id()>. "
1178 "B<EVP_PKEY_CTX_get1_id()> returns the previously set ID value to caller in "
1179 "I<id>. The caller should allocate adequate memory space for the I<id> before "
1180 "calling B<EVP_PKEY_CTX_get1_id()>."
1181 msgstr ""
1182
1183 #. type: Plain text
1184 #: archlinux
1185 msgid ""
1186 "\\&B<EVP_PKEY_CTX_set_kem_op()> sets the KEM operation to run. This can be "
1187 "set after \\&B<EVP_PKEY_encapsulate_init()> or "
1188 "B<EVP_PKEY_decapsulate_init()> to select the kem operation. For the key "
1189 "types that support encapsulation and don\\*(Aqt have the default operation, "
1190 "e.g. RSA, this function must be called before \\&B<EVP_PKEY_encapsulate()> "
1191 "or B<EVP_PKEY_decapsulate()>."
1192 msgstr ""
1193
1194 #. type: Plain text
1195 #: archlinux debian-trixie debian-unstable
1196 msgid ""
1197 "The supported parameters for the built-in algorithms are documented in "
1198 "\\&B<EVP_KEM-RSA>\\|(7), B<EVP_KEM-EC>\\|(7), B<EVP_KEM-X25519>\\|(7), "
1199 "\\&B<EVP_KEM-X448>\\|(7), and B<EVP_KEM-ML-KEM>\\|(7)."
1200 msgstr ""
1201
1202 #. type: IX
1203 #: archlinux debian-trixie debian-unstable
1204 #, no-wrap
1205 msgid "RETURN VALUES"
1206 msgstr ""
1207
1208 #. type: Plain text
1209 #: archlinux debian-trixie debian-unstable
1210 msgid ""
1211 "All other functions described on this page return a positive value for "
1212 "success and 0 or a negative value for failure. In particular a return value "
1213 "of -2 indicates the operation is not supported by the public key algorithm."
1214 msgstr ""
1215
1216 #. type: IX
1217 #: archlinux debian-trixie debian-unstable
1218 #, no-wrap
1219 msgid "SEE ALSO"
1220 msgstr ""
1221
1222 #. type: Plain text
1223 #: archlinux debian-trixie debian-unstable
1224 msgid ""
1225 "\\&B<EVP_PKEY_CTX_set_params>\\|(3), \\&B<EVP_PKEY_CTX_new>\\|(3), "
1226 "\\&B<EVP_PKEY_encrypt>\\|(3), \\&B<EVP_PKEY_decrypt>\\|(3), "
1227 "\\&B<EVP_PKEY_sign>\\|(3), \\&B<EVP_PKEY_verify>\\|(3), "
1228 "\\&B<EVP_PKEY_verify_recover>\\|(3), \\&B<EVP_PKEY_derive>\\|(3), "
1229 "\\&B<EVP_PKEY_keygen>\\|(3) \\&B<EVP_PKEY_encapsulate>\\|(3) "
1230 "\\&B<EVP_PKEY_decapsulate>\\|(3)"
1231 msgstr ""
1232
1233 #. type: IX
1234 #: archlinux debian-trixie debian-unstable
1235 #, no-wrap
1236 msgid "HISTORY"
1237 msgstr ""
1238
1239 #. type: Plain text
1240 #: archlinux debian-trixie debian-unstable
1241 msgid ""
1242 "\\&B<EVP_PKEY_CTX_get_rsa_oaep_md_name()>, "
1243 "B<EVP_PKEY_CTX_get_rsa_mgf1_md_name()>, "
1244 "\\&B<EVP_PKEY_CTX_set_rsa_mgf1_md_name()>, "
1245 "B<EVP_PKEY_CTX_set_rsa_oaep_md_name()>, "
1246 "\\&B<EVP_PKEY_CTX_set_dsa_paramgen_md_props()>, "
1247 "B<EVP_PKEY_CTX_set_dsa_paramgen_gindex()>, "
1248 "\\&B<EVP_PKEY_CTX_set_dsa_paramgen_type()>, "
1249 "B<EVP_PKEY_CTX_set_dsa_paramgen_seed()>, \\&B<EVP_PKEY_CTX_set_group_name()> "
1250 "and B<EVP_PKEY_CTX_get_group_name()> were added in OpenSSL 3.0."
1251 msgstr ""
1252
1253 #. type: Plain text
1254 #: archlinux debian-trixie debian-unstable
1255 msgid ""
1256 "The B<EVP_PKEY_CTX_set1_id()>, B<EVP_PKEY_CTX_get1_id()> and "
1257 "\\&B<EVP_PKEY_CTX_get1_id_len()> macros were added in 1.1.1, other functions "
1258 "were added in OpenSSL 1.0.0."
1259 msgstr ""
1260
1261 #. type: Plain text
1262 #: archlinux debian-trixie debian-unstable
1263 msgid ""
1264 "In OpenSSL 1.1.1 and below the functions were mostly macros. From OpenSSL "
1265 "3.0 they are all functions."
1266 msgstr ""
1267
1268 #. type: Plain text
1269 #: archlinux debian-trixie debian-unstable
1270 msgid ""
1271 "\\&B<EVP_PKEY_CTX_set_rsa_keygen_pubexp()>, "
1272 "B<EVP_PKEY_CTX_get0_dh_kdf_ukm()>, and B<EVP_PKEY_CTX_get0_ecdh_kdf_ukm()> "
1273 "were deprecated in OpenSSL 3.0."
1274 msgstr ""
1275
1276 #. type: IX
1277 #: archlinux debian-trixie debian-unstable
1278 #, no-wrap
1279 msgid "COPYRIGHT"
1280 msgstr ""
1281
1282 #. type: Plain text
1283 #: archlinux debian-trixie debian-unstable
1284 msgid "Copyright 2006-2025 The OpenSSL Project Authors. All Rights Reserved."
1285 msgstr ""
1286
1287 #. type: Plain text
1288 #: archlinux debian-trixie debian-unstable
1289 msgid ""
1290 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
1291 "this file except in compliance with the License. You can obtain a copy in "
1292 "the file LICENSE in the source distribution or at E<lt>https://"
1293 "www.openssl.org/source/license.htmlE<gt>."
1294 msgstr ""
1295
1296 #. ========================================================================
1297 #. type: IX
1298 #: debian-trixie debian-unstable
1299 #, no-wrap
1300 msgid "EVP_PKEY_CTX_CTRL 3SSL"
1301 msgstr ""
1302
1303 #. type: TH
1304 #: debian-trixie
1305 #, no-wrap
1306 msgid "3.5.6"
1307 msgstr ""
1308
1309 #. type: Plain text
1310 #: debian-trixie debian-unstable
1311 msgid ""
1312 "\\&B<EVP_PKEY_CTX_get_group_name()> finds the group name that's currently "
1313 "set with I<ctx>, and writes it to the location that I<name> points at, as "
1314 "long as its size I<namelen> is large enough to store that name, including a "
1315 "terminating NUL byte."
1316 msgstr ""
1317
1318 #. type: Plain text
1319 #: debian-trixie debian-unstable
1320 msgid ""
1321 "Similarly to the B<RSA_PKCS1_WITH_TLS_PADDING> above, since OpenSSL version "
1322 "3.2.0, the use of B<RSA_PKCS1_PADDING> will return a randomly generated "
1323 "message instead of padding errors in case padding checks fail. Applications "
1324 "that want to remain secure while using earlier versions of OpenSSL, or a "
1325 "provider that doesn't implement the implicit rejection mechanism, still need "
1326 "to handle both the error code from the RSA decryption operation and the "
1327 "returned message in a side channel secure manner. This protection against "
1328 "Bleichenbacher attacks can be disabled by setting "
1329 "\\&B<OSSL_ASYM_CIPHER_PARAM_IMPLICIT_REJECTION> (an unsigned integer) to 0."
1330 msgstr ""
1331
1332 #. type: Plain text
1333 #: debian-trixie debian-unstable
1334 msgid ""
1335 "\\&B<EVP_PKEY_CTX_set_dsa_paramgen_md_props()> sets the digest function used "
1336 "for DSA parameter generation using I<md_name> and I<md_properties> to "
1337 "retrieve the digest from a provider. If not specified, I<md_name> will be "
1338 "set to one of SHA-1, SHA-224, or SHA-256 depending on the bit length of I<q> "
1339 "above. I<md_properties> is a property query string that has a default value "
1340 "of '' if not specified."
1341 msgstr ""
1342
1343 #. type: Plain text
1344 #: debian-trixie debian-unstable
1345 msgid ""
1346 "\\&B<EVP_PKEY_CTX_get_group_name()> (described above) can be used to obtain "
1347 "the curve name that's currently set with I<ctx>."
1348 msgstr ""
1349
1350 #. type: Plain text
1351 #: debian-trixie debian-unstable
1352 msgid ""
1353 "\\&B<EVP_PKEY_CTX_set_kem_op()> sets the KEM operation to run. This can be "
1354 "set after \\&B<EVP_PKEY_encapsulate_init()> or "
1355 "B<EVP_PKEY_decapsulate_init()> to select the kem operation. For the key "
1356 "types that support encapsulation and don't have the default operation, e.g. "
1357 "RSA, this function must be called before \\&B<EVP_PKEY_encapsulate()> or "
1358 "B<EVP_PKEY_decapsulate()>."
1359 msgstr ""