Debian Codegraph @

po/fr/man3/EVP_PKEY_sign.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_sign.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
19 #. Required to disable full justification in groff 1.23.0.
20 #. ========================================================================
21 #. type: IX
22 #. #-#-#-#-# debian-trixie: EVP_PKEY_sign.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-unstable: EVP_PKEY_sign.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_SIGN 3ssl"
39 msgstr ""
40
41 #. type: TH
42 #: archlinux debian-trixie debian-unstable
43 #, no-wrap
44 msgid "EVP_PKEY_SIGN"
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 msgid ""
74 "EVP_PKEY_sign_init, EVP_PKEY_sign_init_ex, EVP_PKEY_sign_init_ex2, "
75 "EVP_PKEY_sign, EVP_PKEY_sign_message_init, EVP_PKEY_sign_message_update, "
76 "EVP_PKEY_sign_message_final - sign using a public key algorithm"
77 msgstr ""
78
79 #. type: IX
80 #: archlinux debian-trixie debian-unstable
81 #, no-wrap
82 msgid "SYNOPSIS"
83 msgstr "SYNOPSIS"
84
85 #. type: IX
86 #: archlinux debian-trixie debian-unstable
87 #, fuzzy, no-wrap
88 #| msgid "B<header>"
89 msgid "Header"
90 msgstr "B<header>"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable
94 #, no-wrap
95 msgid ""
96 "\\& #include E<lt>openssl/evp.hE<gt>\n"
97 "\\&\n"
98 "\\& int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);\n"
99 "\\& int EVP_PKEY_sign_init_ex(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]);\n"
100 "\\& int EVP_PKEY_sign_init_ex2(EVP_PKEY_CTX *ctx, EVP_SIGNATURE *algo,\n"
101 "\\& const OSSL_PARAM params[]);\n"
102 "\\& int EVP_PKEY_sign_message_init(EVP_PKEY_CTX *ctx, EVP_SIGNATURE *algo,\n"
103 "\\& const OSSL_PARAM params[]);\n"
104 "\\& int EVP_PKEY_sign_message_update(EVP_PKEY_CTX *ctx,\n"
105 "\\& unsigned char *in, size_t inlen);\n"
106 "\\& int EVP_PKEY_sign_message_final(EVP_PKEY_CTX *ctx, unsigned char *sig,\n"
107 "\\& size_t *siglen, size_t sigsize);\n"
108 "\\& int EVP_PKEY_sign(EVP_PKEY_CTX *ctx,\n"
109 "\\& unsigned char *sig, size_t *siglen,\n"
110 "\\& const unsigned char *tbs, size_t tbslen);\n"
111 msgstr ""
112
113 #. type: IX
114 #: archlinux debian-trixie debian-unstable
115 #, no-wrap
116 msgid "DESCRIPTION"
117 msgstr "DESCRIPTION"
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable
121 msgid ""
122 "\\&B<EVP_PKEY_sign_init()> initializes a public key algorithm context I<ctx> "
123 "for signing using the algorithm given when the context was created using "
124 "B<EVP_PKEY_CTX_new>\\|(3) or variants thereof. The algorithm is used to "
125 "fetch a B<EVP_SIGNATURE> method implicitly, see \"Implicit fetch\" in "
126 "B<provider>\\|(7) for more information about implicit fetches."
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable
131 msgid ""
132 "\\&B<EVP_PKEY_sign_init_ex()> is the same as B<EVP_PKEY_sign_init()> but "
133 "additionally sets the passed parameters I<params> on the context before "
134 "returning."
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable
139 msgid ""
140 "\\&B<EVP_PKEY_sign_init_ex2()> initializes a public key algorithm context "
141 "I<ctx> for signing a pre-computed message digest using the algorithm given "
142 "by I<algo> and the key given through B<EVP_PKEY_CTX_new>\\|(3) or "
143 "B<EVP_PKEY_CTX_new_from_pkey>\\|(3). A context I<ctx> without a pre-loaded "
144 "key cannot be used with this function. This function provides almost the "
145 "same functionality as B<EVP_PKEY_sign_init_ex()>, but is uniquely intended "
146 "to be used with a pre-computed message digest, and allows pre-determining "
147 "the exact conditions for that message digest, if a composite signature "
148 "algorithm (such as RSA-SHA256) was fetched. Following a call to this "
149 "function, setting parameters that modifies the digest implementation or "
150 "padding is not normally supported."
151 msgstr ""
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable
155 msgid ""
156 "\\&B<EVP_PKEY_sign_message_init()> initializes a public key algorithm "
157 "context I<ctx> for signing an unlimited size message using the algorithm "
158 "given by I<algo> and the key given through B<EVP_PKEY_CTX_new>\\|(3) or "
159 "B<EVP_PKEY_CTX_new_from_pkey>\\|(3). Passing the message is supported both "
160 "in a one-shot fashion using \\&B<EVP_PKEY_sign()>, and through the "
161 "combination of B<EVP_PKEY_sign_message_update()> and "
162 "B<EVP_PKEY_sign_message_final()>. This function enables using algorithms "
163 "that can process input of arbitrary length, such as ED25519, RSA-SHA256 and "
164 "similar."
165 msgstr ""
166
167 #. type: Plain text
168 #: archlinux
169 msgid ""
170 "\\&B<EVP_PKEY_sign_message_update()> adds I<inlen> bytes from I<in> to the "
171 "data to be processed for signature. The signature algorithm specification "
172 "and implementation determine how the input bytes are processed and if "
173 "there\\*(Aqs a limit on the total size of the input. See \"NOTES\" below "
174 "for a deeper explanation."
175 msgstr ""
176
177 #. type: Plain text
178 #: archlinux
179 msgid ""
180 "\\&B<EVP_PKEY_sign_message_final()> signs the processed data and places the "
181 "data in \\&I<sig>, and the number of signature bytes in I<*siglen>, if the "
182 "number of bytes doesn\\*(Aqt surpass the size given by I<sigsize>. "
183 "\\&I<sig> may be NULL, and in that case, only I<*siglen> is updated with the "
184 "number of signature bytes."
185 msgstr ""
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable
189 #, fuzzy
190 #| msgid ""
191 #| "The EVP_PKEY_sign() function performs a public key signing operation "
192 #| "using B<ctx>. The data to be signed is specified using the B<tbs> and "
193 #| "B<tbslen> parameters. If B<sig> is B<NULL> then the maximum size of the "
194 #| "output buffer is written to the B<siglen> parameter. If B<sig> is not "
195 #| "B<NULL> then before the call the B<siglen> parameter should contain the "
196 #| "length of the B<sig> buffer, if the call is successful the signature is "
197 #| "written to B<sig> and the amount of data written to B<siglen>."
198 msgid ""
199 "\\&B<EVP_PKEY_sign()> is a one-shot function that can be used with all the "
200 "init functions above. When initialization was done with "
201 "B<EVP_PKEY_sign_init()>, B<EVP_PKEY_sign_init_ex()> or "
202 "B<EVP_PKEY_sign_init_ex2()>, the data specified by I<tbs> and I<tbslen> is "
203 "signed after appropriate padding. When initialization was done with "
204 "B<EVP_PKEY_sign_message_init()>, the data specified by I<tbs> and I<tbslen> "
205 "is digested by the implied message digest algorithm, and the result is "
206 "signed after appropriate padding. If I<sig> is NULL then the maximum size "
207 "of the output buffer is written to the \\&I<siglen> parameter. If I<sig> is "
208 "not NULL, then before the call the I<siglen> parameter should contain the "
209 "length of the I<sig> buffer, and if the call is successful the signature is "
210 "written to I<sig> and the amount of data written to I<siglen>."
211 msgstr ""
212 "La fonction B<EVP_PKEY_sign>() réalise une opération de signature à clef "
213 "publique en utilisant I<ctx>. Les données à signer sont indiquées en "
214 "utilisant les paramètres I<tbs> et I<tbslen>. Si I<sig> est NULL, alors la "
215 "taille maximale du tampon de sortie est écrite dans le paramètre I<siglen>. "
216 "Si I<sig> n'est pas NULL, alors, avant l'appel, le paramètre I<siglen> "
217 "devrait contenir la taille du tampon I<sig> ; si l'appel réussit, la "
218 "signature est écrite dans I<sig> et la quantité de données écrites dans "
219 "I<siglen>."
220
221 #. type: IX
222 #: archlinux debian-trixie debian-unstable
223 #, no-wrap
224 msgid "NOTES"
225 msgstr "NOTES"
226
227 #. type: IX
228 #: archlinux debian-trixie debian-unstable
229 #, fuzzy, no-wrap
230 #| msgid "General options:"
231 msgid "General"
232 msgstr "Options générales"
233
234 #. type: IX
235 #: archlinux debian-trixie debian-unstable
236 #, fuzzy, no-wrap
237 #| msgid " [section1]"
238 msgid "Subsection"
239 msgstr " [section1]"
240
241 #. type: Plain text
242 #: archlinux debian-trixie debian-unstable
243 msgid ""
244 "Some signature implementations only accumulate the input data and do no "
245 "further processing before signing it (they expect the input to be a digest), "
246 "while others compress the data, typically by internally producing a digest, "
247 "and signing the result. Some of them support both modes of operation at the "
248 "same time. The caller is expected to know how the chosen algorithm is "
249 "supposed to behave and under what conditions."
250 msgstr ""
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable
254 msgid ""
255 "For example, an RSA implementation can be expected to only expect a message "
256 "digest as input, while ED25519 can be expected to process the input with a "
257 "hash, i.e. to produce the message digest internally, and while RSA-SHA256 "
258 "can be expected to handle either mode of operation, depending on if the "
259 "operation was initialized with B<EVP_PKEY_sign_init_ex2()> or with "
260 "B<EVP_PKEY_sign_message_init()>."
261 msgstr ""
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable
265 msgid ""
266 "Similarly, an RSA implementation usually expects additional details to be "
267 "set, like the message digest algorithm that the input is supposed to be "
268 "digested with, as well as the padding mode (see "
269 "B<EVP_PKEY_CTX_set_signature_md>\\|(3) and "
270 "\\&B<EVP_PKEY_CTX_set_rsa_padding>\\|(3) and similar others), while an RSA-"
271 "SHA256 implementation usually has these details pre-set and immutable."
272 msgstr ""
273
274 #. type: Plain text
275 #: archlinux
276 msgid ""
277 "The functions described here can\\*(Aqt be used to combine separate "
278 "algorithms. In particular, neither B<EVP_PKEY_CTX_set_signature_md>\\|(3) "
279 "nor the B<OSSL_PARAM> parameter \"digest\" (B<OSSL_SIGNATURE_PARAM_DIGEST>) "
280 "can be used to combine a signature algorithm with a hash algorithm to "
281 "process the input. In other words, it\\*(Aqs not possible to specify a "
282 "I<ctx> pre-loaded with an RSA pkey, or an I<algo> that fetched "
283 "CW<\\*(C`RSA\\*(C'> and try to specify SHA256 separately to get the "
284 "functionality of RSA-SHA256. If combining algorithms in that manner is "
285 "desired, please use B<EVP_DigestSignInit>\\|(3) and associated functions."
286 msgstr ""
287
288 #. type: IX
289 #: archlinux debian-trixie debian-unstable
290 #, no-wrap
291 msgid "Performing multiple signatures"
292 msgstr ""
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable
296 #, fuzzy
297 #| msgid ""
298 #| "The functions EVP_PKEY_keygen() and EVP_PKEY_paramgen() can be called "
299 #| "more than once on the same context if several operations are performed "
300 #| "using the same parameters."
301 msgid ""
302 "When initialized using B<EVP_PKEY_sign_init_ex()> or "
303 "B<EVP_PKEY_sign_init_ex2()>, \\&B<EVP_PKEY_sign()> can be called more than "
304 "once on the same context to have several one-shot operations performed using "
305 "the same parameters."
306 msgstr ""
307 "Les fonctions B<EVP_PKEY_keygen>() et B<EVP_PKEY_paramgen>() peuvent être "
308 "appelées plus d'une fois sur le même contexte si plusieurs opérations sont "
309 "réalisées en utilisant les mêmes paramètres."
310
311 #. type: Plain text
312 #: archlinux
313 msgid ""
314 "When initialized using B<EVP_PKEY_sign_message_init()>, it\\*(Aqs not "
315 "possible to call B<EVP_PKEY_sign()> multiple times."
316 msgstr ""
317
318 #. type: IX
319 #: archlinux debian-trixie debian-unstable
320 #, no-wrap
321 msgid "RETURN VALUES"
322 msgstr "VALEURS RENVOYÉES"
323
324 # NOTE: s/These functions/The function/
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable
327 #, fuzzy
328 #| msgid ""
329 #| "These functions EVP_PKEY_copy_parameters() returns 1 for success and 0 "
330 #| "for failure."
331 msgid ""
332 "All functions return 1 for success and 0 or a negative value for failure."
333 msgstr ""
334 "La fonction B<EVP_PKEY_copy_parameters>() renvoie B<1> en cas de réussite et "
335 "B<0> en cas d'échec."
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable
339 #, fuzzy
340 #| msgid ""
341 #| "EVP_PKEY_sign_init() and EVP_PKEY_sign() return 1 for success and 0 or a "
342 #| "negative value for failure. In particular a return value of -2 indicates "
343 #| "the operation is not supported by the public key algorithm."
344 msgid ""
345 "In particular, B<EVP_PKEY_sign_init()> and its other variants may return -2 "
346 "to indicate that the operation is not supported by the public key algorithm."
347 msgstr ""
348 "B<EVP_PKEY_sign_init>() et B<EVP_PKEY_sign>() renvoient B<1> en cas de "
349 "réussite et B<0> ou une valeur négative en cas d'échec. En particulier, une "
350 "valeur de retour de B<-2> indique que l'opération n'est pas permise par "
351 "l'algorithme à clef publique."
352
353 #. type: IX
354 #: archlinux debian-trixie debian-unstable
355 #, no-wrap
356 msgid "EXAMPLES"
357 msgstr "EXEMPLES"
358
359 #. type: IX
360 #: archlinux debian-trixie debian-unstable
361 #, fuzzy, no-wrap
362 #| msgid "Sign data using RSA with PKCS#1 padding and SHA256 digest:"
363 msgid "RSA with PKCS#1 padding for SHA256"
364 msgstr "Signer les données en utilisant RSA avec remplissage PKCS#1 et un algorithme de signature SHA256 :"
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable
368 #, fuzzy
369 #| msgid "Sign data using RSA with PKCS#1 padding and SHA256 digest:"
370 msgid "Sign data using RSA with PKCS#1 padding and a SHA256 digest as input:"
371 msgstr ""
372 "Signer les données en utilisant RSA avec remplissage PKCS#1 et un algorithme "
373 "de signature SHA256 :"
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable
377 #, no-wrap
378 msgid ""
379 "\\& #include E<lt>openssl/evp.hE<gt>\n"
380 "\\& #include E<lt>openssl/rsa.hE<gt>\n"
381 "\\&\n"
382 "\\& EVP_PKEY_CTX *ctx;\n"
383 "\\& /* md is a SHA-256 digest in this example. */\n"
384 "\\& unsigned char *md, *sig;\n"
385 "\\& size_t mdlen = 32, siglen;\n"
386 "\\& EVP_PKEY *signing_key;\n"
387 "\\&\n"
388 "\\& /*\n"
389 "\\& * NB: assumes signing_key and md are set up before the next\n"
390 "\\& * step. signing_key must be an RSA private key and md must\n"
391 "\\& * point to the SHA-256 digest to be signed.\n"
392 "\\& */\n"
393 "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n"
394 "\\& if (ctx == NULL)\n"
395 "\\& /* Error occurred */\n"
396 "\\& if (EVP_PKEY_sign_init(ctx) E<lt>= 0)\n"
397 "\\& /* Error */\n"
398 "\\& if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) E<lt>= 0)\n"
399 "\\& /* Error */\n"
400 "\\& if (EVP_PKEY_CTX_set_signature_md(ctx, EVP_sha256()) E<lt>= 0)\n"
401 "\\& /* Error */\n"
402 "\\&\n"
403 "\\& /* Determine buffer length */\n"
404 "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, md, mdlen) E<lt>= 0)\n"
405 "\\& /* Error */\n"
406 "\\&\n"
407 "\\& sig = OPENSSL_malloc(siglen);\n"
408 "\\&\n"
409 "\\& if (sig == NULL)\n"
410 "\\& /* malloc failure */\n"
411 "\\&\n"
412 "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) E<lt>= 0)\n"
413 "\\& /* Error */\n"
414 "\\&\n"
415 "\\& /* Signature is siglen bytes written to buffer sig */\n"
416 msgstr ""
417
418 #. type: IX
419 #: archlinux debian-trixie debian-unstable
420 #, no-wrap
421 msgid "RSA-SHA256 with a pre-computed digest"
422 msgstr ""
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable
426 msgid ""
427 "Sign a digest with RSA-SHA256 using one-shot functions. To be noted is that "
428 "RSA-SHA256 is assumed to be an implementation of "
429 "CW<\\*(C`sha256WithRSAEncryption\\*(C'>, for which the padding is pre-"
430 "determined to be B<RSA_PKCS1_PADDING>, and the input digest is assumed to "
431 "have been computed using SHA256."
432 msgstr ""
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable
436 #, no-wrap
437 msgid ""
438 "\\& #include E<lt>openssl/evp.hE<gt>\n"
439 "\\& #include E<lt>openssl/rsa.hE<gt>\n"
440 "\\&\n"
441 "\\& EVP_PKEY_CTX *ctx;\n"
442 "\\& /* md is a SHA-256 digest in this example. */\n"
443 "\\& unsigned char *md, *sig;\n"
444 "\\& size_t mdlen = 32, siglen;\n"
445 "\\& EVP_PKEY *signing_key;\n"
446 "\\&\n"
447 "\\& /*\n"
448 "\\& * NB: assumes signing_key and md are set up before the next\n"
449 "\\& * step. signing_key must be an RSA private key and md must\n"
450 "\\& * point to the SHA-256 digest to be signed.\n"
451 "\\& */\n"
452 "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n"
453 "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n"
454 "\\&\n"
455 "\\& if (ctx == NULL)\n"
456 "\\& /* Error occurred */\n"
457 "\\& if (EVP_PKEY_sign_init_ex2(ctx, alg, NULL) E<lt>= 0)\n"
458 "\\& /* Error */\n"
459 "\\&\n"
460 "\\& /* Determine buffer length */\n"
461 "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, md, mdlen) E<lt>= 0)\n"
462 "\\& /* Error */\n"
463 "\\&\n"
464 "\\& sig = OPENSSL_malloc(siglen);\n"
465 "\\&\n"
466 "\\& if (sig == NULL)\n"
467 "\\& /* malloc failure */\n"
468 "\\&\n"
469 "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) E<lt>= 0)\n"
470 "\\& /* Error */\n"
471 "\\&\n"
472 "\\& /* Signature is siglen bytes written to buffer sig */\n"
473 msgstr ""
474
475 #. type: IX
476 #: archlinux debian-trixie debian-unstable
477 #, no-wrap
478 msgid "RSA-SHA256, one-shot"
479 msgstr ""
480
481 #. type: Plain text
482 #: archlinux debian-trixie debian-unstable
483 msgid ""
484 "Sign a document with RSA-SHA256 using one-shot functions. To be noted is "
485 "that RSA-SHA256 is assumed to be an implementation of "
486 "\\&CW<\\*(C`sha256WithRSAEncryption\\*(C'>, for which the padding is pre-"
487 "determined to be \\&B<RSA_PKCS1_PADDING>."
488 msgstr ""
489
490 #. type: Plain text
491 #: archlinux debian-trixie debian-unstable
492 #, no-wrap
493 msgid ""
494 "\\& #include E<lt>openssl/evp.hE<gt>\n"
495 "\\& #include E<lt>openssl/rsa.hE<gt>\n"
496 "\\&\n"
497 "\\& EVP_PKEY_CTX *ctx;\n"
498 "\\& /* in is the input in this example. */\n"
499 "\\& unsigned char *in, *sig;\n"
500 "\\& /* inlen is the length of the input in this example. */\n"
501 "\\& size_t inlen, siglen;\n"
502 "\\& EVP_PKEY *signing_key;\n"
503 "\\& EVP_SIGNATURE *alg;\n"
504 "\\&\n"
505 "\\& /*\n"
506 "\\& * NB: assumes signing_key, in and inlen are set up before\n"
507 "\\& * the next step. signing_key must be an RSA private key,\n"
508 "\\& * in must point to data to be digested and signed, and\n"
509 "\\& * inlen must be the size of the data in bytes.\n"
510 "\\& */\n"
511 "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n"
512 "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n"
513 "\\&\n"
514 "\\& if (ctx == NULL || alg == NULL)\n"
515 "\\& /* Error occurred */\n"
516 "\\& if (EVP_PKEY_sign_message_init(ctx, alg, NULL) E<lt>= 0)\n"
517 "\\& /* Error */\n"
518 "\\&\n"
519 "\\& /* Determine sig buffer length */\n"
520 "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, in, inlen) E<lt>= 0)\n"
521 "\\& /* Error */\n"
522 "\\&\n"
523 "\\& sig = OPENSSL_malloc(siglen);\n"
524 "\\&\n"
525 "\\& if (sig == NULL)\n"
526 "\\& /* malloc failure */\n"
527 "\\&\n"
528 "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, in, inlen) E<lt>= 0)\n"
529 "\\& /* Error */\n"
530 "\\&\n"
531 "\\& /* Signature is siglen bytes written to buffer sig */\n"
532 msgstr ""
533
534 #. type: IX
535 #: archlinux debian-trixie debian-unstable
536 #, no-wrap
537 msgid "RSA-SHA256, using update and final"
538 msgstr ""
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable
542 msgid ""
543 "This is the same as the previous example, but allowing stream-like "
544 "functionality."
545 msgstr ""
546
547 #. type: Plain text
548 #: archlinux debian-trixie debian-unstable
549 #, no-wrap
550 msgid ""
551 "\\& #include E<lt>openssl/evp.hE<gt>\n"
552 "\\& #include E<lt>openssl/rsa.hE<gt>\n"
553 "\\&\n"
554 "\\& EVP_PKEY_CTX *ctx;\n"
555 "\\& /* in is the input in this example. */\n"
556 "\\& unsigned char *in, *sig;\n"
557 "\\& /* inlen is the length of the input in this example. */\n"
558 "\\& size_t inlen, siglen;\n"
559 "\\& EVP_PKEY *signing_key;\n"
560 "\\& EVP_SIGNATURE *alg;\n"
561 "\\&\n"
562 "\\& /*\n"
563 "\\& * NB: assumes signing_key, in and inlen are set up before\n"
564 "\\& * the next step. signing_key must be an RSA private key,\n"
565 "\\& * in must point to data to be digested and signed, and\n"
566 "\\& * inlen must be the size of the data in bytes.\n"
567 "\\& */\n"
568 "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n"
569 "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n"
570 "\\&\n"
571 "\\& if (ctx == NULL || alg == NULL)\n"
572 "\\& /* Error occurred */\n"
573 "\\& if (EVP_PKEY_sign_message_init(ctx, alg, NULL) E<lt>= 0)\n"
574 "\\& /* Error */\n"
575 "\\&\n"
576 "\\& while (inlen E<gt> 0) {\n"
577 "\\& if (EVP_PKEY_sign_message_update(ctx, in, inlen)) E<lt>= 0)\n"
578 "\\& /* Error */\n"
579 "\\& if (inlen E<gt> 256) {\n"
580 "\\& inlen -= 256;\n"
581 "\\& in += 256;\n"
582 "\\& } else {\n"
583 "\\& inlen = 0;\n"
584 "\\& }\n"
585 "\\& }\n"
586 "\\&\n"
587 "\\& /* Determine sig buffer length */\n"
588 "\\& if (EVP_PKEY_sign_message_final(ctx, NULL, &siglen) E<lt>= 0)\n"
589 "\\& /* Error */\n"
590 "\\&\n"
591 "\\& sig = OPENSSL_malloc(siglen);\n"
592 "\\&\n"
593 "\\& if (sig == NULL)\n"
594 "\\& /* malloc failure */\n"
595 "\\&\n"
596 "\\& if (EVP_PKEY_sign_message_final(ctx, sig, &siglen) E<lt>= 0)\n"
597 "\\& /* Error */\n"
598 "\\&\n"
599 "\\& /* Signature is siglen bytes written to buffer sig */\n"
600 msgstr ""
601
602 #. type: IX
603 #: archlinux debian-trixie debian-unstable
604 #, no-wrap
605 msgid "SEE ALSO"
606 msgstr "VOIR AUSSI"
607
608 #. type: Plain text
609 #: archlinux debian-trixie debian-unstable
610 #, fuzzy
611 #| msgid ""
612 #| "L<EVP_PKEY_CTX_new(3)|EVP_PKEY_CTX_new(3)>, L<EVP_PKEY_sign(3)|"
613 #| "EVP_PKEY_sign(3)>, L<EVP_PKEY_verify(3)|EVP_PKEY_verify(3)>, "
614 #| "L<EVP_PKEY_verify_recover(3)|EVP_PKEY_verify_recover(3)>,"
615 msgid ""
616 "\\&B<EVP_PKEY_CTX_new>\\|(3), \\&B<EVP_PKEY_CTX_ctrl>\\|(3), "
617 "\\&B<EVP_PKEY_encrypt>\\|(3), \\&B<EVP_PKEY_decrypt>\\|(3), "
618 "\\&B<EVP_PKEY_verify>\\|(3), \\&B<EVP_PKEY_verify_recover>\\|(3), "
619 "\\&B<EVP_PKEY_derive>\\|(3)"
620 msgstr ""
621 "L<B<EVP_PKEY_CTX_new>(3)|EVP_PKEY_CTX_new(3)>, L<B<EVP_PKEY_sign>(3)|"
622 "EVP_PKEY_sign(3)>, L<B<EVP_PKEY_verify>(3)|EVP_PKEY_verify(3)>, "
623 "L<B<EVP_PKEY_verify_recover>(3)|EVP_PKEY_verify_recover(3)>,"
624
625 #. type: IX
626 #: archlinux debian-trixie debian-unstable
627 #, no-wrap
628 msgid "HISTORY"
629 msgstr "HISTORIQUE"
630
631 #. type: Plain text
632 #: archlinux debian-trixie debian-unstable
633 msgid ""
634 "The B<EVP_PKEY_sign_init()> and B<EVP_PKEY_sign()> functions were added in "
635 "OpenSSL 1.0.0."
636 msgstr ""
637
638 #. type: Plain text
639 #: archlinux debian-trixie debian-unstable
640 #, fuzzy
641 #| msgid "These functions were first added to OpenSSL 1.0.0."
642 msgid "The B<EVP_PKEY_sign_init_ex()> function was added in OpenSSL 3.0."
643 msgstr ""
644 "Ces fonctions ont été ajoutées pour la première fois dans OpenSSL 1.0.0."
645
646 #. type: Plain text
647 #: archlinux debian-trixie debian-unstable
648 msgid ""
649 "The B<EVP_PKEY_sign_init_ex2()>, B<EVP_PKEY_sign_message_init()>, "
650 "\\&B<EVP_PKEY_sign_message_update()> and B<EVP_PKEY_sign_message_final()> "
651 "functions where added in OpenSSL 3.4."
652 msgstr ""
653
654 #. type: IX
655 #: archlinux debian-trixie debian-unstable
656 #, no-wrap
657 msgid "COPYRIGHT"
658 msgstr "COPYRIGHT"
659
660 #. type: Plain text
661 #: archlinux debian-trixie debian-unstable
662 msgid "Copyright 2006-2025 The OpenSSL Project Authors. All Rights Reserved."
663 msgstr ""
664 "Copyright 2006-2025 Les auteurs du projet OpenSSL. Tous droits réservés."
665
666 #. type: Plain text
667 #: archlinux debian-trixie debian-unstable
668 msgid ""
669 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
670 "this file except in compliance with the License. You can obtain a copy in "
671 "the file LICENSE in the source distribution or at E<lt>https://"
672 "www.openssl.org/source/license.htmlE<gt>."
673 msgstr ""
674 "Sous licence Apache 2.0 (la « Licence »). Vous ne pouvez utiliser ce fichier "
675 "que conformément à la Licence. Vous trouverez une copie dans le fichier "
676 "\\s-1LICENSE\\s0 de la distribution du source ou à l'adresse E<lt>https://"
677 "www.openssl.org/source/license.htmlE<gt>."
678
679 #. ========================================================================
680 #. type: IX
681 #: debian-trixie debian-unstable
682 #, no-wrap
683 msgid "EVP_PKEY_SIGN 3SSL"
684 msgstr ""
685
686 #. type: TH
687 #: debian-trixie
688 #, no-wrap
689 msgid "3.5.6"
690 msgstr "3.5.6"
691
692 #. type: Plain text
693 #: debian-trixie debian-unstable
694 msgid ""
695 "\\&B<EVP_PKEY_sign_message_update()> adds I<inlen> bytes from I<in> to the "
696 "data to be processed for signature. The signature algorithm specification "
697 "and implementation determine how the input bytes are processed and if "
698 "there's a limit on the total size of the input. See \"NOTES\" below for a "
699 "deeper explanation."
700 msgstr ""
701
702 #. type: Plain text
703 #: debian-trixie debian-unstable
704 msgid ""
705 "\\&B<EVP_PKEY_sign_message_final()> signs the processed data and places the "
706 "data in \\&I<sig>, and the number of signature bytes in I<*siglen>, if the "
707 "number of bytes doesn't surpass the size given by I<sigsize>. \\&I<sig> may "
708 "be NULL, and in that case, only I<*siglen> is updated with the number of "
709 "signature bytes."
710 msgstr ""
711
712 #. type: Plain text
713 #: debian-trixie debian-unstable
714 msgid ""
715 "The functions described here can't be used to combine separate algorithms. "
716 "In particular, neither B<EVP_PKEY_CTX_set_signature_md>\\|(3) nor the "
717 "B<OSSL_PARAM> parameter \"digest\" (B<OSSL_SIGNATURE_PARAM_DIGEST>) can be "
718 "used to combine a signature algorithm with a hash algorithm to process the "
719 "input. In other words, it's not possible to specify a I<ctx> pre-loaded "
720 "with an RSA pkey, or an I<algo> that fetched CW<\\*(C`RSA\\*(C'> and try to "
721 "specify SHA256 separately to get the functionality of RSA-SHA256. If "
722 "combining algorithms in that manner is desired, please use "
723 "B<EVP_DigestSignInit>\\|(3) and associated functions."
724 msgstr ""
725
726 #. type: Plain text
727 #: debian-trixie debian-unstable
728 msgid ""
729 "When initialized using B<EVP_PKEY_sign_message_init()>, it's not possible to "
730 "call B<EVP_PKEY_sign()> multiple times."
731 msgstr ""