Skip to content

test: remove references to create(De|C)ipher #58363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/parallel/test-crypto-authenticated.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down Expand Up @@ -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']) {
Expand All @@ -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}`,
Expand Down
Loading