mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: do not skip OCB decryption in FIPS mode
I believe that OCB should work in FIPS mode, and only CCM should be skipped here. PR-URL: https://github.com/nodejs/node/pull/58382 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
23474cb257
commit
d05263edcc
1 file changed
+2
-2
@@ -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(() => {
|
||||
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user