From 61aecf2e58915ea710d7b5f760e4b36208cfeb14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sun, 18 May 2025 23:34:16 +0100 Subject: [PATCH] test: remove references to create(De|C)ipher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both `createCipher()` and `createDecipher()` were removed in Node.js 22. PR-URL: https://github.com/nodejs/node/pull/58363 Reviewed-By: Marco Ippolito Reviewed-By: Michaƫl Zasso Reviewed-By: Filip Skokan Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Luigi Pinca --- 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 181ea732b91..1fc7409c47d 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}`,