We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20c4b80 commit d68ca5cCopy full SHA for d68ca5c
test/parallel/test-crypto-authenticated.js
@@ -304,7 +304,7 @@ for (const test of TEST_CASES) {
304
}
305
306
// Test that create(De|C)ipheriv throws if the mode is CCM or OCB and no
307
-// authentication tag has been specified.
+// authentication tag length has been specified.
308
{
309
for (const mode of ['ccm', 'ocb']) {
310
assert.throws(() => {
@@ -316,7 +316,7 @@ for (const test of TEST_CASES) {
316
});
317
318
// CCM decryption is unsupported in FIPS mode.
319
- if (!isFipsEnabled) {
+ if (!isFipsEnabled || mode !== 'ccm') {
320
321
crypto.createDecipheriv(`aes-256-${mode}`,
322
'FxLKsqdmv0E9xrQhp0b1ZgI0K7JFZJM8',
0 commit comments