Debian Codegraph @

po/fr/man3/EVP_PKEY_keygen.3ssl.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # David Prévot <[email protected]>, 2012-2015.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
9 "PO-Revision-Date: 2015-06-17 12:52-0400\n"
10 "Last-Translator: David Prévot <[email protected]>\n"
11 "Language-Team: French <[email protected]>\n"
12 "Language: fr\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
18 #. #-#-#-#-# archlinux: EVP_PKEY_keygen.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
19 #. Required to disable full justification in groff 1.23.0.
20 #. ========================================================================
21 #. type: IX
22 #. #-#-#-#-# debian-trixie: EVP_PKEY_keygen.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-unstable: EVP_PKEY_keygen.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #: archlinux debian-trixie debian-unstable
29 #, no-wrap
30 msgid "Title"
31 msgstr ""
32
33 #. Required to disable full justification in groff 1.23.0.
34 #. ========================================================================
35 #. type: IX
36 #: archlinux
37 #, no-wrap
38 msgid "EVP_PKEY_KEYGEN 3ssl"
39 msgstr ""
40
41 #. type: TH
42 #: archlinux debian-trixie debian-unstable
43 #, no-wrap
44 msgid "EVP_PKEY_KEYGEN"
45 msgstr ""
46
47 #. type: TH
48 #: archlinux debian-trixie debian-unstable
49 #, no-wrap
50 msgid "2026-04-07"
51 msgstr "7 avril 2026"
52
53 #. type: TH
54 #: archlinux debian-unstable
55 #, no-wrap
56 msgid "3.6.2"
57 msgstr "3.6.2"
58
59 #. type: TH
60 #: archlinux debian-trixie debian-unstable
61 #, no-wrap
62 msgid "OpenSSL"
63 msgstr "OpenSSL"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable
67 #, no-wrap
68 msgid "NAME"
69 msgstr "NOM"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable
73 #, fuzzy
74 #| msgid ""
75 #| "EVP_PKEY_keygen_init, EVP_PKEY_keygen, EVP_PKEY_paramgen_init, "
76 #| "EVP_PKEY_paramgen, EVP_PKEY_CTX_set_cb, EVP_PKEY_CTX_get_cb, "
77 #| "EVP_PKEY_CTX_get_keygen_info, EVP_PKEVP_PKEY_CTX_set_app_data, "
78 #| "EVP_PKEY_CTX_get_app_data - key and parameter generation functions"
79 msgid ""
80 "EVP_PKEY_Q_keygen, EVP_PKEY_keygen_init, EVP_PKEY_paramgen_init, "
81 "EVP_PKEY_generate, EVP_PKEY_CTX_set_cb, EVP_PKEY_CTX_get_cb, "
82 "EVP_PKEY_CTX_get_keygen_info, EVP_PKEY_CTX_set_app_data, "
83 "EVP_PKEY_CTX_get_app_data, EVP_PKEY_gen_cb, EVP_PKEY_paramgen, "
84 "EVP_PKEY_keygen \\&- key and parameter generation and check functions"
85 msgstr ""
86 "EVP_PKEY_keygen_init, EVP_PKEY_keygen, EVP_PKEY_paramgen_init, "
87 "EVP_PKEY_paramgen, EVP_PKEY_CTX_set_cb, EVP_PKEY_CTX_get_cb, "
88 "EVP_PKEY_CTX_get_keygen_info, EVP_PKEVP_PKEY_CTX_set_app_data, "
89 "EVP_PKEY_CTX_get_app_data - Fonctions de création de clefs et paramètres"
90
91 #. type: IX
92 #: archlinux debian-trixie debian-unstable
93 #, no-wrap
94 msgid "SYNOPSIS"
95 msgstr "SYNOPSIS"
96
97 #. type: IX
98 #: archlinux debian-trixie debian-unstable
99 #, fuzzy, no-wrap
100 #| msgid "B<header>"
101 msgid "Header"
102 msgstr "B<header>"
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable
106 #, no-wrap
107 msgid ""
108 "\\& #include E<lt>openssl/evp.hE<gt>\n"
109 "\\&\n"
110 "\\& EVP_PKEY *EVP_PKEY_Q_keygen(OSSL_LIB_CTX *libctx, const char *propq,\n"
111 "\\& const char *type, ...);\n"
112 "\\&\n"
113 "\\& int EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx);\n"
114 "\\& int EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx);\n"
115 "\\& int EVP_PKEY_generate(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\n"
116 "\\& int EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\n"
117 "\\& int EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\n"
118 "\\&\n"
119 "\\& typedef int EVP_PKEY_gen_cb(EVP_PKEY_CTX *ctx);\n"
120 "\\&\n"
121 "\\& void EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb);\n"
122 "\\& EVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx);\n"
123 "\\&\n"
124 "\\& int EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx);\n"
125 "\\&\n"
126 "\\& void EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data);\n"
127 "\\& void *EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx);\n"
128 msgstr ""
129
130 #. type: IX
131 #: archlinux debian-trixie debian-unstable
132 #, no-wrap
133 msgid "DESCRIPTION"
134 msgstr "DESCRIPTION"
135
136 #. type: Plain text
137 #: archlinux
138 msgid ""
139 "Generating keys is sometimes straight forward, just generate the key\\*(Aqs "
140 "numbers and be done with it. However, there are certain key types that need "
141 "key parameters, often called domain parameters but not necessarily limited "
142 "to that, that also need to be generated. In addition to this, the caller "
143 "may want to set user provided generation parameters that further affect key "
144 "parameter or key generation, such as the desired key size."
145 msgstr ""
146
147 #. type: Plain text
148 #: archlinux
149 msgid ""
150 "To flexibly allow all that\\*(Aqs just been described, key parameter and key "
151 "generation is divided into an initialization of a key algorithm context, "
152 "functions to set user provided parameters, and finally the key parameter or "
153 "key generation function itself."
154 msgstr ""
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable
158 msgid ""
159 "The key algorithm context must be created using B<EVP_PKEY_CTX_new>\\|(3) or "
160 "variants thereof, see that manual for details."
161 msgstr ""
162
163 # NOTE: s/genration/generation/
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable
166 #, fuzzy
167 #| msgid ""
168 #| "The EVP_PKEY_keygen_init() function initializes a public key algorithm "
169 #| "context using key B<pkey> for a key genration operation."
170 msgid ""
171 "\\&B<EVP_PKEY_keygen_init()> initializes a public key algorithm context "
172 "I<ctx> for a key generation operation."
173 msgstr ""
174 "La fonction B<EVP_PKEY_keygen_init>() initialise un contexte d'algorithme à "
175 "clef publique en utilisant I<pkey> pour une opération de création de clef."
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable
179 #, fuzzy
180 #| msgid ""
181 #| "The functions EVP_PKEY_paramgen_init() and EVP_PKEY_paramgen() are "
182 #| "similar except parameters are generated."
183 msgid ""
184 "\\&B<EVP_PKEY_paramgen_init()> is similar to B<EVP_PKEY_keygen_init()> "
185 "except key parameters are generated."
186 msgstr ""
187 "Les fonctions B<EVP_PKEY_paramgen_init>() et B<EVP_PKEY_paramgen>() sont "
188 "similaires à part que les paramètres sont créés."
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable
192 msgid ""
193 "After initialization, generation parameters may be provided with "
194 "\\&B<EVP_PKEY_CTX_ctrl>\\|(3) or B<EVP_PKEY_CTX_set_params>\\|(3), or any "
195 "other function described in those manuals."
196 msgstr ""
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable
200 msgid ""
201 "\\&B<EVP_PKEY_generate()> performs the generation operation, the resulting "
202 "key parameters or key are written to I<*ppkey>. If I<*ppkey> is NULL when "
203 "this function is called, it will be allocated, and should be freed by the "
204 "caller when no longer useful, using B<EVP_PKEY_free>\\|(3)."
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable
209 msgid ""
210 "\\&B<EVP_PKEY_paramgen()> and B<EVP_PKEY_keygen()> do exactly the same thing "
211 "as \\&B<EVP_PKEY_generate()>, after checking that the corresponding "
212 "B<EVP_PKEY_paramgen_init()> or B<EVP_PKEY_keygen_init()> was used to "
213 "initialize I<ctx>. These are older functions that are kept for backward "
214 "compatibility. It is safe to use B<EVP_PKEY_generate()> instead."
215 msgstr ""
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable
219 #, fuzzy
220 #| msgid ""
221 #| "The function EVP_PKEY_set_cb() sets the key or parameter generation "
222 #| "callback to B<cb>. The function EVP_PKEY_CTX_get_cb() returns the key or "
223 #| "parameter generation callback."
224 msgid ""
225 "The function B<EVP_PKEY_set_cb()> sets the key or parameter generation "
226 "callback to I<cb>. The function B<EVP_PKEY_CTX_get_cb()> returns the key or "
227 "parameter generation callback."
228 msgstr ""
229 "La fonction B<EVP_PKEY_set_cb>() définit le rappel de génération de clefs ou "
230 "paramètres à I<cb>. La fonction B<EVP_PKEY_CTX_get_cb>() renvoie le rappel "
231 "de génération de clefs ou paramètres."
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable
235 #, fuzzy
236 #| msgid ""
237 #| "The function EVP_PKEY_CTX_get_keygen_info() returns parameters associated "
238 #| "with the generation operation. If B<idx> is -1 the total number of "
239 #| "parameters available is returned. Any non negative value returns the "
240 #| "value of that parameter. EVP_PKEY_CTX_gen_keygen_info() with a non-"
241 #| "negative value for B<idx> should only be called within the generation "
242 #| "callback."
243 msgid ""
244 "The function B<EVP_PKEY_CTX_get_keygen_info()> returns parameters associated "
245 "with the generation operation. If I<idx> is -1 the total number of "
246 "parameters available is returned. Any non negative value returns the value "
247 "of that parameter. B<EVP_PKEY_CTX_gen_keygen_info()> with a nonnegative "
248 "value for \\&I<idx> should only be called within the generation callback."
249 msgstr ""
250 "La fonction B<EVP_PKEY_CTX_get_keygen_info>() renvoie les paramètres "
251 "associés à l'opération de création. Si I<idx> est B<-1>, le nombre total de "
252 "paramètres disponibles est renvoyé. N'importe quelle valeur non négative "
253 "renvoie la valeur de ce paramètre. B<EVP_PKEY_CTX_gen_keygen_info>() avec "
254 "une valeur non négative pour I<idx> ne devrait être appelée que depuis le "
255 "rappel de création."
256
257 # NOTE: s/genration/generation/
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable
260 #, fuzzy
261 #| msgid ""
262 #| "If the callback returns 0 then the key genration operation is aborted and "
263 #| "an error occurs. This might occur during a time consuming operation where "
264 #| "a user clicks on a \"cancel\" button."
265 msgid ""
266 "If the callback returns 0 then the key generation operation is aborted and "
267 "an error occurs. This might occur during a time consuming operation where a "
268 "user clicks on a \"cancel\" button."
269 msgstr ""
270 "Si le rappel renvoie B<0>, alors l'opération de création de clef est "
271 "abandonnée et une erreur survient. Cela pourrait arriver pendant une "
272 "opération particulièrement longue où un utilisateur clique sur un bouton "
273 "« annuler »."
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable
277 #, fuzzy
278 #| msgid ""
279 #| "The functions EVP_PKEY_CTX_set_app_data() and EVP_PKEY_CTX_get_app_data() "
280 #| "set and retrieve an opaque pointer. This can be used to set some "
281 #| "application defined value which can be retrieved in the callback: for "
282 #| "example a handle which is used to update a \"progress dialog\"."
283 msgid ""
284 "The functions B<EVP_PKEY_CTX_set_app_data()> and "
285 "B<EVP_PKEY_CTX_get_app_data()> associate an opaque, application-defined "
286 "pointer with an EVP_PKEY_CTX object."
287 msgstr ""
288 "Les fonctions B<EVP_PKEY_CTX_set_app_data>() et "
289 "B<EVP_PKEY_CTX_get_app_data>() définissent et récupèrent un pointeur opaque. "
290 "Cela peut être utilisé pour définir certaines valeurs d'application qui "
291 "peuvent être récupérées dans le rappel : par exemple un traitement qui est "
292 "utilisé pour mettre à jour une « boîte de dialogue de progression »."
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable
296 msgid ""
297 "This pointer is not interpreted by the library and is reserved entirely for "
298 "use by the application. It may be used to store arbitrary context or state "
299 "that needs to be accessible wherever the corresponding EVP_PKEY_CTX is "
300 "available."
301 msgstr ""
302
303 #. type: Plain text
304 #: archlinux
305 msgid ""
306 "\\&B<EVP_PKEY_Q_keygen()> abstracts from the explicit use of B<EVP_PKEY_CTX> "
307 "while providing a \\*(Aqquick\\*(Aq but limited way of generating a new "
308 "asymmetric key pair. It provides shorthands for simple and common cases of "
309 "key generation. As usual, the library context I<libctx> and property query "
310 "I<propq> can be given for fetching algorithms from providers. If I<type> is "
311 "CW<\\*(C`RSA\\*(C'>, a B<size_t> parameter must be given to specify the size "
312 "of the RSA key. If I<type> is CW<\\*(C`EC\\*(C'>, a string parameter must "
313 "be given to specify the name of the EC curve. If I<type> is: "
314 "\\&CW<\\*(C`ED25519\\*(C'>, \\&CW<\\*(C`ED448\\*(C'>, "
315 "\\&CW<\\*(C`SM2\\*(C'>, \\&CW<\\*(C`X25519\\*(C'>, \\&CW<\\*(C`X448\\*(C'>, "
316 "\\&CW<\\*(C`ML-DSA-44\\*(C'>, \\&CW<\\*(C`ML-DSA-65\\*(C'>, \\&CW<\\*(C`ML-"
317 "DSA-87\\*(C'>, \\&CW<\\*(C`ML-KEM-512\\*(C'>, \\&CW<\\*(C`ML-KEM-768\\*(C'>, "
318 "or \\&CW<\\*(C`ML-KEM-1024\\*(C'> no further parameters are needed. Other "
319 "key types may be possible if they are supplied by the loaded providers. "
320 "B<EVP_PKEY_Q_keygen()> may be usable with such key types as long as they do "
321 "not require further parameters."
322 msgstr ""
323
324 #. type: IX
325 #: archlinux debian-trixie debian-unstable
326 #, no-wrap
327 msgid "RETURN VALUES"
328 msgstr "VALEURS RENVOYÉES"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable
332 #, fuzzy
333 #| msgid ""
334 #| "EVP_PKEY_keygen_init(), EVP_PKEY_paramgen_init(), EVP_PKEY_keygen() and "
335 #| "EVP_PKEY_paramgen() return 1 for success and 0 or a negative value for "
336 #| "failure. In particular a return value of -2 indicates the operation is "
337 #| "not supported by the public key algorithm."
338 msgid ""
339 "\\&B<EVP_PKEY_keygen_init()>, B<EVP_PKEY_paramgen_init()>, "
340 "B<EVP_PKEY_keygen()> and \\&B<EVP_PKEY_paramgen()> return 1 for success and "
341 "0 or a negative value for failure. In particular a return value of -2 "
342 "indicates the operation is not supported by the public key algorithm."
343 msgstr ""
344 "B<EVP_PKEY_keygen_init>(), B<EVP_PKEY_paramgen_init>(), B<EVP_PKEY_keygen>() "
345 "et B<EVP_PKEY_paramgen>() renvoient B<1> en cas de réussite et B<0> ou une "
346 "valeur négative en cas d'échec. En particulier, une valeur de retour de "
347 "B<-2> indique que l'opération n'est pas permise par l'algorithme à clef "
348 "publique."
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable
352 msgid "\\&B<EVP_PKEY_Q_keygen()> returns an B<EVP_PKEY>, or NULL on failure."
353 msgstr ""
354
355 #. type: IX
356 #: archlinux debian-trixie debian-unstable
357 #, no-wrap
358 msgid "NOTES"
359 msgstr "NOTES"
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable
363 #, fuzzy
364 #| msgid ""
365 #| "After the call to EVP_PKEY_keygen_init() or EVP_PKEY_paramgen_init() "
366 #| "algorithm specific control operations can be performed to set any "
367 #| "appropriate parameters for the operation."
368 msgid ""
369 "After the call to B<EVP_PKEY_keygen_init()> or B<EVP_PKEY_paramgen_init()> "
370 "algorithm specific control operations can be performed to set any "
371 "appropriate parameters for the operation."
372 msgstr ""
373 "Après l'appel de B<EVP_PKEY_keygen_init>() ou B<EVP_PKEY_paramgen_init>(), "
374 "des opérations de contrôle spécifiques à l'algorithme peuvent être réalisées "
375 "pour définir n'importe quels paramètres appropriés à l'opération."
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable
379 #, fuzzy
380 #| msgid ""
381 #| "The functions EVP_PKEY_keygen() and EVP_PKEY_paramgen() can be called "
382 #| "more than once on the same context if several operations are performed "
383 #| "using the same parameters."
384 msgid ""
385 "The functions B<EVP_PKEY_keygen()> and B<EVP_PKEY_paramgen()> can be called "
386 "more than once on the same context if several operations are performed using "
387 "the same parameters."
388 msgstr ""
389 "Les fonctions B<EVP_PKEY_keygen>() et B<EVP_PKEY_paramgen>() peuvent être "
390 "appelées plus d'une fois sur le même contexte si plusieurs opérations sont "
391 "réalisées en utilisant les mêmes paramètres."
392
393 # NOTE: s/specifiic/specific/
394 #. type: Plain text
395 #: archlinux debian-trixie debian-unstable
396 #, fuzzy
397 #| msgid ""
398 #| "The meaning of the parameters passed to the callback will depend on the "
399 #| "algorithm and the specifiic implementation of the algorithm. Some might "
400 #| "not give any useful information at all during key or parameter "
401 #| "generation. Others might not even call the callback."
402 msgid ""
403 "The meaning of the parameters passed to the callback will depend on the "
404 "algorithm and the specific implementation of the algorithm. Some might not "
405 "give any useful information at all during key or parameter generation. "
406 "Others might not even call the callback."
407 msgstr ""
408 "La signification des paramètres passés au rappel dépendra de l'algorithme et "
409 "de l'implémentation spécifique à l'algorithme. Certains pourraient ne donner "
410 "absolument aucun renseignement utile lors de la création de clefs ou "
411 "paramètres. Certains pourraient ne même pas appeler le rappel."
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable
415 msgid ""
416 "The operation performed by key or parameter generation depends on the "
417 "algorithm used. In some cases (e.g. EC with a supplied named curve) the "
418 "\"generation\" option merely sets the appropriate fields in an EVP_PKEY "
419 "structure."
420 msgstr ""
421 "L'opération réalisée par la création de clefs ou paramètres dépend de "
422 "l'algorithme utilisé. Dans certains cas (par exemple EC avec une courbe "
423 "nommée fournie), l'option « création » définit principalement les champs "
424 "appropriés dans une structure EVP_PKEY."
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable
428 msgid ""
429 "In OpenSSL an EVP_PKEY structure containing a private key also contains the "
430 "public key components and parameters (if any). An OpenSSL private key is "
431 "equivalent to what some libraries call a \"key pair\". A private key can be "
432 "used in functions which require the use of a public key or parameters."
433 msgstr ""
434 "Dans OpenSSL, une structure EVP_PKEY contenant une clef privée contient "
435 "aussi les composants et paramètres (s'il y en a) de clef publique. Une clef "
436 "privée OpenSSL est équivalente à ce que certaines bibliothèques appellent "
437 "une « paire de clefs ». Une clef privée peut être utilisée dans des "
438 "fonctions qui nécessitent l'utilisation d'une clef publique ou de paramètres."
439
440 #. type: IX
441 #: archlinux debian-trixie debian-unstable
442 #, no-wrap
443 msgid "EXAMPLES"
444 msgstr "EXEMPLES"
445
446 #. type: Plain text
447 #: archlinux debian-trixie debian-unstable
448 msgid "Generate a 2048 bit RSA key:"
449 msgstr "Créer une clef RSA de 2048 bits :"
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable
453 #, fuzzy, no-wrap
454 #| msgid ""
455 #| " EVP_PKEY_CTX *ctx;\n"
456 #| " EVP_PKEY *pkey = NULL;\n"
457 #| " ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL);\n"
458 #| " if (!ctx)\n"
459 #| "\t/* Error occurred */\n"
460 #| " if (EVP_PKEY_keygen_init(ctx) <= 0)\n"
461 #| "\t/* Error */\n"
462 #| " if (EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, 2048) <= 0)\n"
463 #| "\t/* Error */\n"
464 #| "\n"
465 msgid ""
466 "\\& #include E<lt>openssl/evp.hE<gt>\n"
467 "\\& #include E<lt>openssl/rsa.hE<gt>\n"
468 "\\&\n"
469 "\\& EVP_PKEY_CTX *ctx;\n"
470 "\\& EVP_PKEY *pkey = NULL;\n"
471 "\\&\n"
472 "\\& ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL);\n"
473 "\\& if (!ctx)\n"
474 "\\& /* Error occurred */\n"
475 "\\& if (EVP_PKEY_keygen_init(ctx) E<lt>= 0)\n"
476 "\\& /* Error */\n"
477 "\\& if (EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, 2048) E<lt>= 0)\n"
478 "\\& /* Error */\n"
479 "\\&\n"
480 "\\& /* Generate key */\n"
481 "\\& if (EVP_PKEY_keygen(ctx, &pkey) E<lt>= 0)\n"
482 "\\& /* Error */\n"
483 msgstr ""
484 " EVP_PKEY_CTX *ctx;\n"
485 " EVP_PKEY *pkey = NULL;\n"
486 " ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL);\n"
487 " if (!ctx)\n"
488 "\t/* Une erreur est survenue */\n"
489 " if (EVP_PKEY_keygen_init(ctx) <= 0)\n"
490 "\t/* Erreur */\n"
491 " if (EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, 2048) <= 0)\n"
492 "\t/* Erreur */\n"
493 "\n"
494
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable
497 msgid "Generate a key from a set of parameters:"
498 msgstr "Créer une clef à partir d'un ensemble de paramètres :"
499
500 #. type: Plain text
501 #: archlinux debian-trixie debian-unstable
502 #, fuzzy, no-wrap
503 #| msgid ""
504 #| " EVP_PKEY_CTX *ctx;\n"
505 #| " EVP_PKEY *pkey = NULL, *param;\n"
506 #| " /* Assumed param is set up already */\n"
507 #| " ctx = EVP_PKEY_CTX_new(param);\n"
508 #| " if (!ctx)\n"
509 #| "\t/* Error occurred */\n"
510 #| " if (EVP_PKEY_keygen_init(ctx) <= 0)\n"
511 #| "\t/* Error */\n"
512 #| "\n"
513 msgid ""
514 "\\& #include E<lt>openssl/evp.hE<gt>\n"
515 "\\& #include E<lt>openssl/rsa.hE<gt>\n"
516 "\\&\n"
517 "\\& EVP_PKEY_CTX *ctx;\n"
518 "\\& ENGINE *eng;\n"
519 "\\& EVP_PKEY *pkey = NULL, *param;\n"
520 "\\&\n"
521 "\\& /* Assumed param, eng are set up already */\n"
522 "\\& ctx = EVP_PKEY_CTX_new(param, eng);\n"
523 "\\& if (!ctx)\n"
524 "\\& /* Error occurred */\n"
525 "\\& if (EVP_PKEY_keygen_init(ctx) E<lt>= 0)\n"
526 "\\& /* Error */\n"
527 "\\&\n"
528 "\\& /* Generate key */\n"
529 "\\& if (EVP_PKEY_keygen(ctx, &pkey) E<lt>= 0)\n"
530 "\\& /* Error */\n"
531 msgstr ""
532 " EVP_PKEY_CTX *ctx;\n"
533 " EVP_PKEY *pkey = NULL, *param;\n"
534 " /* param est supposé déjà défini */\n"
535 " ctx = EVP_PKEY_CTX_new(param);\n"
536 " if (!ctx)\n"
537 "\t/* Une erreur est survenue */\n"
538 " if (EVP_PKEY_keygen_init(ctx) <= 0)\n"
539 "\t/* Erreur */\n"
540 "\n"
541
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable
544 msgid "Example of generation callback for OpenSSL public key implementations:"
545 msgstr ""
546 "Exemple de rappel de création pour les implémentations à clef publique "
547 "OpenSSL :"
548
549 #. type: Plain text
550 #: archlinux debian-trixie debian-unstable
551 #, fuzzy, no-wrap
552 #| msgid ""
553 #| " static int genpkey_cb(EVP_PKEY_CTX *ctx)\n"
554 #| "\t{\n"
555 #| "\tchar c='*';\n"
556 #| "\tBIO *b = EVP_PKEY_CTX_get_app_data(ctx);\n"
557 #| "\tint p;\n"
558 #| "\tp = EVP_PKEY_CTX_get_keygen_info(ctx, 0);\n"
559 #| "\tif (p == 0) c='.';\n"
560 #| "\tif (p == 1) c='+';\n"
561 #| "\tif (p == 2) c='*';\n"
562 #| "\tif (p == 3) c='\\n';\n"
563 #| "\tBIO_write(b,&c,1);\n"
564 #| "\t(void)BIO_flush(b);\n"
565 #| "\treturn 1;\n"
566 #| "\t}\n"
567 #| "\n"
568 msgid ""
569 "\\& /* Application data is a BIO to output status to */\n"
570 "\\&\n"
571 "\\& EVP_PKEY_CTX_set_app_data(ctx, status_bio);\n"
572 "\\&\n"
573 "\\& static int genpkey_cb(EVP_PKEY_CTX *ctx)\n"
574 "\\& {\n"
575 "\\& char c = \\*(Aq*\\*(Aq;\n"
576 "\\& BIO *b = EVP_PKEY_CTX_get_app_data(ctx);\n"
577 "\\& int p = EVP_PKEY_CTX_get_keygen_info(ctx, 0);\n"
578 "\\&\n"
579 "\\& if (p == 0)\n"
580 "\\& c = \\*(Aq.\\*(Aq;\n"
581 "\\& if (p == 1)\n"
582 "\\& c = \\*(Aq+\\*(Aq;\n"
583 "\\& if (p == 2)\n"
584 "\\& c = \\*(Aq*\\*(Aq;\n"
585 "\\& if (p == 3)\n"
586 "\\& c = \\*(Aq\\en\\*(Aq;\n"
587 "\\& BIO_write(b, &c, 1);\n"
588 "\\& (void)BIO_flush(b);\n"
589 "\\& return 1;\n"
590 "\\& }\n"
591 msgstr ""
592 " static int genpkey_cb(EVP_PKEY_CTX *ctx)\n"
593 "\t{\n"
594 "\tchar c='*';\n"
595 "\tBIO *b = EVP_PKEY_CTX_get_app_data(ctx);\n"
596 "\tint p;\n"
597 "\tp = EVP_PKEY_CTX_get_keygen_info(ctx, 0);\n"
598 "\tif (p == 0) c='.';\n"
599 "\tif (p == 1) c='+';\n"
600 "\tif (p == 2) c='*';\n"
601 "\tif (p == 3) c='\\n';\n"
602 "\tBIO_write(b,&c,1);\n"
603 "\t(void)BIO_flush(b);\n"
604 "\treturn 1;\n"
605 "\t}\n"
606 "\n"
607
608 #. type: IX
609 #: archlinux debian-trixie debian-unstable
610 #, no-wrap
611 msgid "SEE ALSO"
612 msgstr "VOIR AUSSI"
613
614 #. type: Plain text
615 #: archlinux debian-trixie debian-unstable
616 #, fuzzy
617 #| msgid ""
618 #| "L<EVP_PKEY_CTX_new(3)|EVP_PKEY_CTX_new(3)>, L<EVP_PKEY_sign(3)|"
619 #| "EVP_PKEY_sign(3)>, L<EVP_PKEY_verify(3)|EVP_PKEY_verify(3)>, "
620 #| "L<EVP_PKEY_verify_recover(3)|EVP_PKEY_verify_recover(3)>,"
621 msgid ""
622 "\\&B<EVP_RSA_gen>\\|(3), B<EVP_EC_gen>\\|(3), \\&B<EVP_PKEY_CTX_new>\\|(3), "
623 "\\&B<EVP_PKEY_encrypt>\\|(3), \\&B<EVP_PKEY_decrypt>\\|(3), "
624 "\\&B<EVP_PKEY_sign>\\|(3), \\&B<EVP_PKEY_verify>\\|(3), "
625 "\\&B<EVP_PKEY_verify_recover>\\|(3), \\&B<EVP_PKEY_derive>\\|(3)"
626 msgstr ""
627 "L<B<EVP_PKEY_CTX_new>(3)|EVP_PKEY_CTX_new(3)>, L<B<EVP_PKEY_sign>(3)|"
628 "EVP_PKEY_sign(3)>, L<B<EVP_PKEY_verify>(3)|EVP_PKEY_verify(3)>, "
629 "L<B<EVP_PKEY_verify_recover>(3)|EVP_PKEY_verify_recover(3)>,"
630
631 #. type: IX
632 #: archlinux debian-trixie debian-unstable
633 #, no-wrap
634 msgid "HISTORY"
635 msgstr "HISTORIQUE"
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable
639 #, fuzzy
640 #| msgid ""
641 #| "EVP_PKEY_keygen_init, EVP_PKEY_keygen, EVP_PKEY_paramgen_init, "
642 #| "EVP_PKEY_paramgen, EVP_PKEY_CTX_set_cb, EVP_PKEY_CTX_get_cb, "
643 #| "EVP_PKEY_CTX_get_keygen_info, EVP_PKEVP_PKEY_CTX_set_app_data, "
644 #| "EVP_PKEY_CTX_get_app_data - key and parameter generation functions"
645 msgid ""
646 "\\&B<EVP_PKEY_keygen_init()>, int B<EVP_PKEY_paramgen_init()>, "
647 "B<EVP_PKEY_keygen()>, \\&B<EVP_PKEY_paramgen()>, B<EVP_PKEY_gen_cb()>, "
648 "B<EVP_PKEY_CTX_set_cb()>, \\&B<EVP_PKEY_CTX_get_cb()>, "
649 "B<EVP_PKEY_CTX_get_keygen_info()>, \\&B<EVP_PKEY_CTX_set_app_data()> and "
650 "B<EVP_PKEY_CTX_get_app_data()> were added in OpenSSL 1.0.0."
651 msgstr ""
652 "EVP_PKEY_keygen_init, EVP_PKEY_keygen, EVP_PKEY_paramgen_init, "
653 "EVP_PKEY_paramgen, EVP_PKEY_CTX_set_cb, EVP_PKEY_CTX_get_cb, "
654 "EVP_PKEY_CTX_get_keygen_info, EVP_PKEVP_PKEY_CTX_set_app_data, "
655 "EVP_PKEY_CTX_get_app_data - Fonctions de création de clefs et paramètres"
656
657 #. type: Plain text
658 #: archlinux debian-trixie debian-unstable
659 msgid ""
660 "\\&B<EVP_PKEY_Q_keygen()> and B<EVP_PKEY_generate()> were added in OpenSSL "
661 "3.0."
662 msgstr ""
663
664 #. type: IX
665 #: archlinux debian-trixie debian-unstable
666 #, no-wrap
667 msgid "COPYRIGHT"
668 msgstr "COPYRIGHT"
669
670 #. type: Plain text
671 #: archlinux debian-trixie debian-unstable
672 #, fuzzy
673 #| msgid ""
674 #| "Copyright 2006-2025 The OpenSSL Project Authors. All Rights Reserved."
675 msgid "Copyright 2006-2026 The OpenSSL Project Authors. All Rights Reserved."
676 msgstr ""
677 "Copyright 2006-2025 Les auteurs du projet OpenSSL. Tous droits réservés."
678
679 #. type: Plain text
680 #: archlinux debian-trixie debian-unstable
681 msgid ""
682 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
683 "this file except in compliance with the License. You can obtain a copy in "
684 "the file LICENSE in the source distribution or at E<lt>https://"
685 "www.openssl.org/source/license.htmlE<gt>."
686 msgstr ""
687 "Sous licence Apache 2.0 (la « Licence »). Vous ne pouvez utiliser ce fichier "
688 "que conformément à la Licence. Vous trouverez une copie dans le fichier "
689 "\\s-1LICENSE\\s0 de la distribution du source ou à l'adresse E<lt>https://"
690 "www.openssl.org/source/license.htmlE<gt>."
691
692 #. ========================================================================
693 #. type: IX
694 #: debian-trixie debian-unstable
695 #, no-wrap
696 msgid "EVP_PKEY_KEYGEN 3SSL"
697 msgstr ""
698
699 #. type: TH
700 #: debian-trixie
701 #, no-wrap
702 msgid "3.5.6"
703 msgstr "3.5.6"
704
705 #. type: Plain text
706 #: debian-trixie debian-unstable
707 msgid ""
708 "Generating keys is sometimes straight forward, just generate the key's "
709 "numbers and be done with it. However, there are certain key types that need "
710 "key parameters, often called domain parameters but not necessarily limited "
711 "to that, that also need to be generated. In addition to this, the caller "
712 "may want to set user provided generation parameters that further affect key "
713 "parameter or key generation, such as the desired key size."
714 msgstr ""
715
716 #. type: Plain text
717 #: debian-trixie debian-unstable
718 msgid ""
719 "To flexibly allow all that's just been described, key parameter and key "
720 "generation is divided into an initialization of a key algorithm context, "
721 "functions to set user provided parameters, and finally the key parameter or "
722 "key generation function itself."
723 msgstr ""
724
725 #. type: Plain text
726 #: debian-trixie debian-unstable
727 msgid ""
728 "\\&B<EVP_PKEY_Q_keygen()> abstracts from the explicit use of B<EVP_PKEY_CTX> "
729 "while providing a 'quick' but limited way of generating a new asymmetric key "
730 "pair. It provides shorthands for simple and common cases of key "
731 "generation. As usual, the library context I<libctx> and property query "
732 "I<propq> can be given for fetching algorithms from providers. If I<type> is "
733 "CW<\\*(C`RSA\\*(C'>, a B<size_t> parameter must be given to specify the size "
734 "of the RSA key. If I<type> is CW<\\*(C`EC\\*(C'>, a string parameter must "
735 "be given to specify the name of the EC curve. If I<type> is: "
736 "\\&CW<\\*(C`ED25519\\*(C'>, \\&CW<\\*(C`ED448\\*(C'>, "
737 "\\&CW<\\*(C`SM2\\*(C'>, \\&CW<\\*(C`X25519\\*(C'>, \\&CW<\\*(C`X448\\*(C'>, "
738 "\\&CW<\\*(C`ML-DSA-44\\*(C'>, \\&CW<\\*(C`ML-DSA-65\\*(C'>, \\&CW<\\*(C`ML-"
739 "DSA-87\\*(C'>, \\&CW<\\*(C`ML-KEM-512\\*(C'>, \\&CW<\\*(C`ML-KEM-768\\*(C'>, "
740 "or \\&CW<\\*(C`ML-KEM-1024\\*(C'> no further parameters are needed. Other "
741 "key types may be possible if they are supplied by the loaded providers. "
742 "B<EVP_PKEY_Q_keygen()> may be usable with such key types as long as they do "
743 "not require further parameters."
744 msgstr ""