GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: do not skip OCB decryption in FIPS mode · nodejs/node@d05263e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-crypto-authenticated.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-crypto-authenticated.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-authenticated.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ for (const test of TEST_CASES) {
304304
}
305305

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

318318
// CCM decryption is unsupported in FIPS mode.
319-
if (!isFipsEnabled) {
319+
if (!isFipsEnabled || mode !== 'ccm') {
320320
assert.throws(() => {
321321
crypto.createDecipheriv(`aes-256-${mode}`,
322322
'FxLKsqdmv0E9xrQhp0b1ZgI0K7JFZJM8',

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.