Debian Codegraph @

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