Skip to content

Commit 4ae6a1a

Browse files
tniessentargos
authored andcommitted
test: remove references to create(De|C)ipher
Both `createCipher()` and `createDecipher()` were removed in Node.js 22. PR-URL: #58363 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 462c4b0 commit 4ae6a1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-crypto-authenticated.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ for (const test of TEST_CASES) {
245245
assert.strictEqual(text.toString('utf8'), 'node');
246246
}
247247

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
249249
// authentication tag length has been specified.
250250
{
251251
for (const authTagLength of [-1, true, false, NaN, 5.5]) {
@@ -303,7 +303,7 @@ for (const test of TEST_CASES) {
303303
}
304304
}
305305

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
307307
// authentication tag has been specified.
308308
{
309309
for (const mode of ['ccm', 'ocb']) {
@@ -315,7 +315,7 @@ for (const test of TEST_CASES) {
315315
message: `authTagLength required for aes-256-${mode}`
316316
});
317317

318-
// CCM decryption and create(De|C)ipher are unsupported in FIPS mode.
318+
// CCM decryption is unsupported in FIPS mode.
319319
if (!isFipsEnabled) {
320320
assert.throws(() => {
321321
crypto.createDecipheriv(`aes-256-${mode}`,

0 commit comments

Comments
 (0)