@@ -4,7 +4,7 @@ import type { ConformanceTester } from "./conformanceTester.ts";
4
4
import type { TestVector } from "./testVector.ts" ;
5
5
6
6
import { createConformanceTester } from "./conformanceTester.ts" ;
7
- import { isDeno , testVectorPath } from "../../core/test/utils.ts" ;
7
+ import { isNode , testVectorPath } from "../../core/test/utils.ts" ;
8
8
9
9
describe ( "RFC9180 conformance" , ( ) => {
10
10
let testVectors : TestVector [ ] ;
@@ -26,7 +26,7 @@ describe("RFC9180 conformance", () => {
26
26
it ( "should match demonstrated values" , async ( ) => {
27
27
for ( const v of testVectors ) {
28
28
if ( v . mode === 0 && v . kem_id === 0x0010 && v . aead_id <= 0x0002 ) {
29
- if ( isDeno ( ) ) {
29
+ if ( ! isNode ( ) ) {
30
30
continue ;
31
31
}
32
32
await tester . test ( v ) ;
@@ -49,7 +49,7 @@ describe("RFC9180 conformance", () => {
49
49
it ( "should match demonstrated values" , async ( ) => {
50
50
for ( const v of testVectors ) {
51
51
if ( v . mode === 0 && v . kem_id === 0x0012 && v . aead_id <= 0x0002 ) {
52
- if ( isDeno ( ) ) {
52
+ if ( ! isNode ( ) ) {
53
53
continue ;
54
54
}
55
55
await tester . test ( v ) ;
@@ -62,7 +62,7 @@ describe("RFC9180 conformance", () => {
62
62
it ( "should match demonstrated values" , async ( ) => {
63
63
for ( const v of testVectors ) {
64
64
if ( v . mode === 0 && v . kem_id < 0x0020 && v . aead_id === 0x0003 ) {
65
- if ( isDeno ( ) ) {
65
+ if ( ! isNode ( ) ) {
66
66
continue ;
67
67
}
68
68
await tester . test ( v ) ;
@@ -75,7 +75,7 @@ describe("RFC9180 conformance", () => {
75
75
it ( "should match demonstrated values" , async ( ) => {
76
76
for ( const v of testVectors ) {
77
77
if ( v . mode === 0 && v . kem_id < 0x0020 && v . aead_id === 0xFFFF ) {
78
- if ( isDeno ( ) ) {
78
+ if ( ! isNode ( ) ) {
79
79
continue ;
80
80
}
81
81
await tester . test ( v ) ;
@@ -148,7 +148,7 @@ describe("RFC9180 conformance", () => {
148
148
it ( "should match demonstrated values" , async ( ) => {
149
149
for ( const v of testVectors ) {
150
150
if ( v . mode === 1 && v . kem_id < 0x0020 && v . aead_id <= 0x0002 ) {
151
- if ( isDeno ( ) ) {
151
+ if ( ! isNode ( ) ) {
152
152
continue ;
153
153
}
154
154
await tester . test ( v ) ;
@@ -161,7 +161,7 @@ describe("RFC9180 conformance", () => {
161
161
it ( "should match demonstrated values" , async ( ) => {
162
162
for ( const v of testVectors ) {
163
163
if ( v . mode === 1 && v . kem_id < 0x0020 && v . aead_id === 0x0003 ) {
164
- if ( isDeno ( ) ) {
164
+ if ( ! isNode ( ) ) {
165
165
continue ;
166
166
}
167
167
await tester . test ( v ) ;
@@ -174,7 +174,7 @@ describe("RFC9180 conformance", () => {
174
174
it ( "should match demonstrated values" , async ( ) => {
175
175
for ( const v of testVectors ) {
176
176
if ( v . mode === 1 && v . kem_id < 0x0020 && v . aead_id === 0xFFFF ) {
177
- if ( isDeno ( ) ) {
177
+ if ( ! isNode ( ) ) {
178
178
continue ;
179
179
}
180
180
await tester . test ( v ) ;
@@ -247,7 +247,7 @@ describe("RFC9180 conformance", () => {
247
247
it ( "should match demonstrated values" , async ( ) => {
248
248
for ( const v of testVectors ) {
249
249
if ( v . mode === 2 && v . kem_id < 0x0020 && v . aead_id <= 0x0002 ) {
250
- if ( isDeno ( ) ) {
250
+ if ( ! isNode ( ) ) {
251
251
continue ;
252
252
}
253
253
await tester . test ( v ) ;
@@ -260,7 +260,7 @@ describe("RFC9180 conformance", () => {
260
260
it ( "should match demonstrated values" , async ( ) => {
261
261
for ( const v of testVectors ) {
262
262
if ( v . mode === 2 && v . kem_id < 0x0020 && v . aead_id === 0x0003 ) {
263
- if ( isDeno ( ) ) {
263
+ if ( ! isNode ( ) ) {
264
264
continue ;
265
265
}
266
266
await tester . test ( v ) ;
@@ -273,7 +273,7 @@ describe("RFC9180 conformance", () => {
273
273
it ( "should match demonstrated values" , async ( ) => {
274
274
for ( const v of testVectors ) {
275
275
if ( v . mode === 2 && v . kem_id < 0x0020 && v . aead_id === 0xFFFF ) {
276
- if ( isDeno ( ) ) {
276
+ if ( ! isNode ( ) ) {
277
277
continue ;
278
278
}
279
279
await tester . test ( v ) ;
@@ -346,7 +346,7 @@ describe("RFC9180 conformance", () => {
346
346
it ( "should match demonstrated values" , async ( ) => {
347
347
for ( const v of testVectors ) {
348
348
if ( v . mode === 3 && v . kem_id < 0x0020 && v . aead_id <= 0x0002 ) {
349
- if ( isDeno ( ) ) {
349
+ if ( ! isNode ( ) ) {
350
350
continue ;
351
351
}
352
352
await tester . test ( v ) ;
@@ -359,7 +359,7 @@ describe("RFC9180 conformance", () => {
359
359
it ( "should match demonstrated values" , async ( ) => {
360
360
for ( const v of testVectors ) {
361
361
if ( v . mode === 3 && v . kem_id < 0x0020 && v . aead_id === 0x0003 ) {
362
- if ( isDeno ( ) ) {
362
+ if ( ! isNode ( ) ) {
363
363
continue ;
364
364
}
365
365
await tester . test ( v ) ;
@@ -372,7 +372,7 @@ describe("RFC9180 conformance", () => {
372
372
it ( "should match demonstrated values" , async ( ) => {
373
373
for ( const v of testVectors ) {
374
374
if ( v . mode === 3 && v . kem_id < 0x0020 && v . aead_id === 0xFFFF ) {
375
- if ( isDeno ( ) ) {
375
+ if ( ! isNode ( ) ) {
376
376
continue ;
377
377
}
378
378
await tester . test ( v ) ;
0 commit comments