Skip to content
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
4 changes: 2 additions & 2 deletions test/parallel/test-crypto-authenticated.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ for (const test of TEST_CASES) {
}

// Test that create(De|C)ipheriv throws if the mode is CCM or OCB and no
// authentication tag has been specified.
// authentication tag length has been specified.
{
for (const mode of ['ccm', 'ocb']) {
assert.throws(() => {
Expand All @@ -316,7 +316,7 @@ for (const test of TEST_CASES) {
});

// CCM decryption is unsupported in FIPS mode.
if (!isFipsEnabled) {
if (!isFipsEnabled || mode !== 'ccm') {
assert.throws(() => {
crypto.createDecipheriv(`aes-256-${mode}`,
'FxLKsqdmv0E9xrQhp0b1ZgI0K7JFZJM8',
Expand Down
Loading