Commit b402609
crypto: improve setAuthTag
This is an attempt to make the behavior of setAuthTag match the
documentation: In GCM mode, it can be called at any time before
invoking final, even after the last call to update.
Fixes: nodejs#22421
PR-URL: nodejs#22538
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 594dd42 commit b402609
File tree
3 files changed
+51
-16
lines changed- src
- test/parallel
3 files changed
+51
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2928 | 2928 | | |
2929 | 2929 | | |
2930 | 2930 | | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
2931 | 2945 | | |
2932 | 2946 | | |
2933 | 2947 | | |
| |||
2947 | 2961 | | |
2948 | 2962 | | |
2949 | 2963 | | |
2950 | | - | |
2951 | | - | |
2952 | | - | |
2953 | | - | |
2954 | | - | |
2955 | | - | |
| 2964 | + | |
| 2965 | + | |
2956 | 2966 | | |
2957 | | - | |
2958 | | - | |
2959 | 2967 | | |
2960 | 2968 | | |
2961 | 2969 | | |
| |||
3000 | 3008 | | |
3001 | 3009 | | |
3002 | 3010 | | |
3003 | | - | |
3004 | | - | |
3005 | | - | |
3006 | | - | |
3007 | | - | |
3008 | | - | |
3009 | | - | |
3010 | | - | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
3011 | 3015 | | |
3012 | 3016 | | |
3013 | 3017 | | |
| |||
3107 | 3111 | | |
3108 | 3112 | | |
3109 | 3113 | | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
3110 | 3118 | | |
3111 | 3119 | | |
3112 | 3120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
0 commit comments