Commit 9389572
crypto: fix faulty logic in iv size check
Fix a regression introduced in commit 2996b5c ("crypto: Allow GCM
ciphers to have a longer IV length") from April 2016 where a misplaced
parenthesis in a 'is ECB cipher?' check made it possible to use empty
IVs with non-ECB ciphers.
Also fix some exit bugs in test/parallel/test-crypto-authenticated.js
that were introduced in commit 4a40832 ("test: cleanup IIFE tests")
where removing the IFFEs made the test exit prematurely instead of just
skipping subtests.
PR-URL: #9032
Refs: #6376
Refs: #9024
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>1 parent 62e83b3 commit 9389572Copy full SHA for 9389572
File tree
Expand file treeCollapse file tree
3 files changed
+58
-15
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
3 files changed
+58
-15
lines changedOpen diff view settings
Collapse file
+8-12Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3068 | 3068 | |
3069 | 3069 | |
3070 | 3070 | |
3071 | | - |
3072 | | - |
3073 | | - |
3074 | | - |
3075 | | - |
| 3071 | + |
| 3072 | + |
| 3073 | + |
| 3074 | + |
3076 | 3075 | |
3077 | 3076 | |
3078 | 3077 | |
3079 | 3078 | |
3080 | 3079 | |
3081 | 3080 | |
3082 | 3081 | |
3083 | | - |
3084 | | - |
3085 | | - |
3086 | | - |
3087 | | - |
3088 | | - |
3089 | | - |
| 3082 | + |
| 3083 | + |
| 3084 | + |
| 3085 | + |
3090 | 3086 | |
3091 | 3087 | |
3092 | 3088 | |
|
Collapse file
test/parallel/test-crypto-authenticated.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-authenticated.js+15-3Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
307 | 307 | |
308 | 308 | |
309 | 309 | |
310 | | - |
| 310 | + |
311 | 311 | |
312 | | - |
313 | | - |
| 312 | + |
| 313 | + |
314 | 314 | |
315 | 315 | |
316 | 316 | |
| ||
452 | 452 | |
453 | 453 | |
454 | 454 | |
| 455 | + |
| 456 | + |
| 457 | + |
| 458 | + |
| 459 | + |
| 460 | + |
| 461 | + |
| 462 | + |
| 463 | + |
| 464 | + |
| 465 | + |
| 466 | + |
Collapse file
test/parallel/test-crypto-cipheriv-decipheriv.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-cipheriv-decipheriv.js+35Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
63 | 63 | |
64 | 64 | |
65 | 65 | |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
0 commit comments