mirror of
https://github.com/nodejs/node.git
synced 2026-11-15 10:36:53 -05:00
test: remove references to create(De|C)ipher
Both `createCipher()` and `createDecipher()` were removed in Node.js 22. PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
39ab68b2c1
commit
61aecf2e58
1 file changed
+3
-3
@@ -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}`,
|
||||
|
||||
Reference in new issue
Block a user