Commit a9e7369
committed
crypto: fix edge case in authenticated encryption
Restricting the authentication tag length and calling update or
setAAD before setAuthTag caused an incorrect authentication tag to
be passed to OpenSSL: The auth_tag_len_ field was already set, so
the implementation assumed that the tag itself was known as well.
PR-URL: #22828
Reviewed-By: Daniel Bevenius <[email protected]>1 parent 47a0d04 commit a9e7369
File tree
3 files changed
+38
-20
lines changed- src
- test/parallel
3 files changed
+38
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2897 | 2897 | | |
2898 | 2898 | | |
2899 | 2899 | | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
2900 | 2904 | | |
2901 | 2905 | | |
2902 | 2906 | | |
| |||
2921 | 2925 | | |
2922 | 2926 | | |
2923 | 2927 | | |
| 2928 | + | |
2924 | 2929 | | |
2925 | 2930 | | |
2926 | 2931 | | |
| |||
2931 | 2936 | | |
2932 | 2937 | | |
2933 | 2938 | | |
2934 | | - | |
| 2939 | + | |
2935 | 2940 | | |
2936 | 2941 | | |
2937 | 2942 | | |
2938 | 2943 | | |
2939 | 2944 | | |
2940 | 2945 | | |
2941 | | - | |
| 2946 | + | |
2942 | 2947 | | |
2943 | 2948 | | |
2944 | 2949 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
366 | 371 | | |
367 | 372 | | |
368 | 373 | | |
| |||
404 | 409 | | |
405 | 410 | | |
406 | 411 | | |
407 | | - | |
| 412 | + | |
408 | 413 | | |
409 | 414 | | |
410 | 415 | | |
| |||
413 | 418 | | |
414 | 419 | | |
415 | 420 | | |
416 | | - | |
| 421 | + | |
417 | 422 | | |
418 | 423 | | |
419 | 424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
| 560 | + | |
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
578 | 589 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | 590 | | |
583 | 591 | | |
0 commit comments