From cb802ddbc48c4e88bab8d36a33adee8fd5c50a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 16 May 2025 23:21:55 +0100 Subject: [PATCH] test: remove references to create(De|C)ipher Both `createCipher()` and `createDecipher()` were removed in Node.js 22. --- test/parallel/test-crypto-authenticated.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-crypto-authenticated.js b/test/parallel/test-crypto-authenticated.js index 181ea732b91281..1fc7409c47dd55 100644 --- a/test/parallel/test-crypto-authenticated.js +++ b/test/parallel/test-crypto-authenticated.js @@ -245,7 +245,7 @@ for (const test of TEST_CASES) { assert.strictEqual(text.toString('utf8'), 'node'); } -// Test that create(De|C)ipher(iv)? throws if the mode is CCM and an invalid +// Test that create(De|C)ipheriv throws if the mode is CCM and an invalid // authentication tag length has been specified. { for (const authTagLength of [-1, true, false, NaN, 5.5]) { @@ -303,7 +303,7 @@ for (const test of TEST_CASES) { } } -// Test that create(De|C)ipher(iv)? throws if the mode is CCM or OCB and no +// Test that create(De|C)ipheriv throws if the mode is CCM or OCB and no // authentication tag has been specified. { for (const mode of ['ccm', 'ocb']) { @@ -315,7 +315,7 @@ for (const test of TEST_CASES) { message: `authTagLength required for aes-256-${mode}` }); - // CCM decryption and create(De|C)ipher are unsupported in FIPS mode. + // CCM decryption is unsupported in FIPS mode. if (!isFipsEnabled) { assert.throws(() => { crypto.createDecipheriv(`aes-256-${mode}`,