Skip to content

Commit 7096e33

Browse files
authored
hpke-js: skip some x25519 key validation tests for Node.js. (#522)
1 parent 4ab68a0 commit 7096e33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/hpke-js/test/keyValidationX25519.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ describe("X25519 key validation", () => {
4545
}
4646
} else {
4747
for (const v of tv.testGroups[0].tests) {
48+
if ([85, 86, 87, 88, 97].includes(v.tcId)) {
49+
// Skip test vectors that are dependent on the Node.js's crypto module implementation.
50+
continue;
51+
}
4852
if (v.flags.find((k) => k === "ZeroSharedSecret")) {
4953
await tester.testInvalidX25519PublicKey(v.public);
5054
} else {

0 commit comments

Comments
 (0)