| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fecd841 commit f18041a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -245,7 +245,7 @@ for (const test of TEST_CASES) { | |||
| 245 | 245 | assert.strictEqual(text.toString('utf8'), 'node'); | |
| 246 | 246 | } | |
| 247 | 247 | ||
| 248 | - // Test that create(De|C)ipher(iv)? throws if the mode is CCM and an invalid | ||
| 248 | + // Test that create(De|C)ipheriv throws if the mode is CCM and an invalid | ||
| 249 | 249 | // authentication tag length has been specified. | |
| 250 | 250 | { | |
| 251 | 251 | for (const authTagLength of [-1, true, false, NaN, 5.5]) { | |
@@ -303,7 +303,7 @@ for (const test of TEST_CASES) { | |||
| 303 | 303 | } | |
| 304 | 304 | } | |
| 305 | 305 | ||
| 306 | - // Test that create(De|C)ipher(iv)? throws if the mode is CCM or OCB and no | ||
| 306 | + // Test that create(De|C)ipheriv throws if the mode is CCM or OCB and no | ||
| 307 | 307 | // authentication tag has been specified. | |
| 308 | 308 | { | |
| 309 | 309 | for (const mode of ['ccm', 'ocb']) { | |
@@ -315,7 +315,7 @@ for (const test of TEST_CASES) { | |||
| 315 | 315 | message: `authTagLength required for aes-256-${mode}` | |
| 316 | 316 | }); | |
| 317 | 317 | ||
| 318 | - // CCM decryption and create(De|C)ipher are unsupported in FIPS mode. | ||
| 318 | + // CCM decryption is unsupported in FIPS mode. | ||
| 319 | 319 | if (!isFipsEnabled) { | |
| 320 | 320 | assert.throws(() => { | |
| 321 | 321 | crypto.createDecipheriv(`aes-256-${mode}`, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments