Skip to content

Commit 4408757

Browse files
committed
fixup! crypto: add TurboSHAKE and KangarooTwelve Web Cryptography algorithms
1 parent e5d2566 commit 4408757

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/crypto/webidl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ converters.TurboShakeParams = createDictionaryConverter(
935935
if (V < 0x01 || V > 0x7F) {
936936
throw lazyDOMException(
937937
'TurboShakeParams.domainSeparation must be in range 0x01-0x7f',
938-
'NotSupportedError');
938+
'OperationError');
939939
}
940940
},
941941
},

test/parallel/test-webcrypto-digest-turboshake.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ async function testDigest(size, alg) {
169169
{ name: 'TurboSHAKE128', outputLength: 256, domainSeparation: 0x00 },
170170
Buffer.alloc(0)),
171171
{
172-
name: 'NotSupportedError',
172+
name: 'OperationError',
173173
});
174174
await assert.rejects(
175175
subtle.digest(
176176
{ name: 'TurboSHAKE128', outputLength: 256, domainSeparation: 0x80 },
177177
Buffer.alloc(0)),
178178
{
179-
name: 'NotSupportedError',
179+
name: 'OperationError',
180180
});
181181
})().then(common.mustCall());

0 commit comments

Comments
 (0)