1
1
import { afterAll , beforeAll , describe , it } from "@std/testing/bdd" ;
2
2
3
- import { isDeno , isDenoV1 } from "@hpke/common" ;
3
+ import { isDeno } from "@hpke/common" ;
4
4
5
5
import type { ConformanceTester } from "./conformanceTester.ts" ;
6
6
import type { TestVector } from "./testVector.ts" ;
@@ -30,9 +30,6 @@ describe("RFC9180 conformance", () => {
30
30
it ( "should match demonstrated values" , async ( ) => {
31
31
for ( const v of testVectors ) {
32
32
if ( v . mode === 0 && v . kem_id === 0x0010 && v . aead_id <= 0x0002 ) {
33
- if ( isDenoV1 ( ) ) {
34
- continue ;
35
- }
36
33
await tester . test ( v ) ;
37
34
}
38
35
}
@@ -66,7 +63,7 @@ describe("RFC9180 conformance", () => {
66
63
// it("should match demonstrated values", async () => {
67
64
// for (const v of testVectors) {
68
65
// if (v.mode === 0 && v.kem_id < 0x0020 && v.aead_id === 0x0003) {
69
- // if (isDenoV1() || ( v.kem_id === 0x0012 && isDeno() )) {
66
+ // if (v.kem_id === 0x0012 && isDeno()) {
70
67
// continue;
71
68
// }
72
69
// await tester.test(v);
@@ -79,7 +76,7 @@ describe("RFC9180 conformance", () => {
79
76
it ( "should match demonstrated values" , async ( ) => {
80
77
for ( const v of testVectors ) {
81
78
if ( v . mode === 0 && v . kem_id < 0x0020 && v . aead_id === 0xFFFF ) {
82
- if ( isDenoV1 ( ) || ( v . kem_id === 0x0012 && isDeno ( ) ) ) {
79
+ if ( v . kem_id === 0x0012 && isDeno ( ) ) {
83
80
continue ;
84
81
}
85
82
await tester . test ( v ) ;
@@ -92,9 +89,6 @@ describe("RFC9180 conformance", () => {
92
89
it ( "should match demonstrated values" , async ( ) => {
93
90
for ( const v of testVectors ) {
94
91
if ( v . mode === 0 && v . kem_id === 0x0020 && v . aead_id <= 0x0002 ) {
95
- if ( isDenoV1 ( ) ) {
96
- continue ;
97
- }
98
92
await tester . test ( v ) ;
99
93
}
100
94
}
@@ -115,9 +109,6 @@ describe("RFC9180 conformance", () => {
115
109
it ( "should match demonstrated values" , async ( ) => {
116
110
for ( const v of testVectors ) {
117
111
if ( v . mode === 0 && v . kem_id === 0x0020 && v . aead_id === 0xFFFF ) {
118
- if ( isDenoV1 ( ) ) {
119
- continue ;
120
- }
121
112
await tester . test ( v ) ;
122
113
}
123
114
}
@@ -164,7 +155,7 @@ describe("RFC9180 conformance", () => {
164
155
it ( "should match demonstrated values" , async ( ) => {
165
156
for ( const v of testVectors ) {
166
157
if ( v . mode === 1 && v . kem_id < 0x0020 && v . aead_id <= 0x0002 ) {
167
- if ( isDenoV1 ( ) || ( v . kem_id === 0x0012 && isDeno ( ) ) ) {
158
+ if ( v . kem_id === 0x0012 && isDeno ( ) ) {
168
159
continue ;
169
160
}
170
161
await tester . test ( v ) ;
@@ -177,7 +168,7 @@ describe("RFC9180 conformance", () => {
177
168
// it("should match demonstrated values", async () => {
178
169
// for (const v of testVectors) {
179
170
// if (v.mode === 1 && v.kem_id < 0x0020 && v.aead_id === 0x0003) {
180
- // if (isDenoV1() || ( v.kem_id === 0x0012 && isDeno() )) {
171
+ // if (v.kem_id === 0x0012 && isDeno()) {
181
172
// continue;
182
173
// }
183
174
// await tester.test(v);
@@ -190,7 +181,7 @@ describe("RFC9180 conformance", () => {
190
181
it ( "should match demonstrated values" , async ( ) => {
191
182
for ( const v of testVectors ) {
192
183
if ( v . mode === 1 && v . kem_id < 0x0020 && v . aead_id === 0xFFFF ) {
193
- if ( isDenoV1 ( ) || ( v . kem_id === 0x0012 && isDeno ( ) ) ) {
184
+ if ( v . kem_id === 0x0012 && isDeno ( ) ) {
194
185
continue ;
195
186
}
196
187
await tester . test ( v ) ;
@@ -203,9 +194,6 @@ describe("RFC9180 conformance", () => {
203
194
it ( "should match demonstrated values" , async ( ) => {
204
195
for ( const v of testVectors ) {
205
196
if ( v . mode === 1 && v . kem_id === 0x0020 && v . aead_id <= 0x0002 ) {
206
- if ( isDenoV1 ( ) ) {
207
- continue ;
208
- }
209
197
await tester . test ( v ) ;
210
198
}
211
199
}
@@ -226,9 +214,6 @@ describe("RFC9180 conformance", () => {
226
214
it ( "should match demonstrated values" , async ( ) => {
227
215
for ( const v of testVectors ) {
228
216
if ( v . mode === 1 && v . kem_id === 0x0020 && v . aead_id === 0xFFFF ) {
229
- if ( isDenoV1 ( ) ) {
230
- continue ;
231
- }
232
217
await tester . test ( v ) ;
233
218
}
234
219
}
@@ -275,7 +260,7 @@ describe("RFC9180 conformance", () => {
275
260
it ( "should match demonstrated values" , async ( ) => {
276
261
for ( const v of testVectors ) {
277
262
if ( v . mode === 2 && v . kem_id < 0x0020 && v . aead_id <= 0x0002 ) {
278
- if ( isDenoV1 ( ) || ( v . kem_id === 0x0012 && isDeno ( ) ) ) {
263
+ if ( v . kem_id === 0x0012 && isDeno ( ) ) {
279
264
continue ;
280
265
}
281
266
await tester . test ( v ) ;
@@ -288,7 +273,7 @@ describe("RFC9180 conformance", () => {
288
273
// it("should match demonstrated values", async () => {
289
274
// for (const v of testVectors) {
290
275
// if (v.mode === 2 && v.kem_id < 0x0020 && v.aead_id === 0x0003) {
291
- // if (isDenoV1() || ( v.kem_id === 0x0012 && isDeno() )) {
276
+ // if (v.kem_id === 0x0012 && isDeno()) {
292
277
// continue;
293
278
// }
294
279
// await tester.test(v);
@@ -301,7 +286,7 @@ describe("RFC9180 conformance", () => {
301
286
it ( "should match demonstrated values" , async ( ) => {
302
287
for ( const v of testVectors ) {
303
288
if ( v . mode === 2 && v . kem_id < 0x0020 && v . aead_id === 0xFFFF ) {
304
- if ( isDenoV1 ( ) || ( v . kem_id === 0x0012 && isDeno ( ) ) ) {
289
+ if ( v . kem_id === 0x0012 && isDeno ( ) ) {
305
290
continue ;
306
291
}
307
292
await tester . test ( v ) ;
@@ -314,9 +299,6 @@ describe("RFC9180 conformance", () => {
314
299
it ( "should match demonstrated values" , async ( ) => {
315
300
for ( const v of testVectors ) {
316
301
if ( v . mode === 2 && v . kem_id === 0x0020 && v . aead_id <= 0x0002 ) {
317
- if ( isDenoV1 ( ) ) {
318
- continue ;
319
- }
320
302
await tester . test ( v ) ;
321
303
}
322
304
}
@@ -337,9 +319,6 @@ describe("RFC9180 conformance", () => {
337
319
it ( "should match demonstrated values" , async ( ) => {
338
320
for ( const v of testVectors ) {
339
321
if ( v . mode === 2 && v . kem_id === 0x0020 && v . aead_id === 0xFFFF ) {
340
- if ( isDenoV1 ( ) ) {
341
- continue ;
342
- }
343
322
await tester . test ( v ) ;
344
323
}
345
324
}
@@ -386,7 +365,7 @@ describe("RFC9180 conformance", () => {
386
365
it ( "should match demonstrated values" , async ( ) => {
387
366
for ( const v of testVectors ) {
388
367
if ( v . mode === 3 && v . kem_id < 0x0020 && v . aead_id <= 0x0002 ) {
389
- if ( isDenoV1 ( ) || ( v . kem_id === 0x0012 && isDeno ( ) ) ) {
368
+ if ( v . kem_id === 0x0012 && isDeno ( ) ) {
390
369
continue ;
391
370
}
392
371
await tester . test ( v ) ;
@@ -399,7 +378,7 @@ describe("RFC9180 conformance", () => {
399
378
// it("should match demonstrated values", async () => {
400
379
// for (const v of testVectors) {
401
380
// if (v.mode === 3 && v.kem_id < 0x0020 && v.aead_id === 0x0003) {
402
- // if (isDenoV1() || ( v.kem_id === 0x0012 && isDeno() )) {
381
+ // if (v.kem_id === 0x0012 && isDeno()) {
403
382
// continue;
404
383
// }
405
384
// await tester.test(v);
@@ -412,7 +391,7 @@ describe("RFC9180 conformance", () => {
412
391
it ( "should match demonstrated values" , async ( ) => {
413
392
for ( const v of testVectors ) {
414
393
if ( v . mode === 3 && v . kem_id < 0x0020 && v . aead_id === 0xFFFF ) {
415
- if ( isDenoV1 ( ) || ( v . kem_id === 0x0012 && isDeno ( ) ) ) {
394
+ if ( v . kem_id === 0x0012 && isDeno ( ) ) {
416
395
continue ;
417
396
}
418
397
await tester . test ( v ) ;
@@ -425,9 +404,6 @@ describe("RFC9180 conformance", () => {
425
404
it ( "should match demonstrated values" , async ( ) => {
426
405
for ( const v of testVectors ) {
427
406
if ( v . mode === 3 && v . kem_id === 0x0020 && v . aead_id <= 0x0002 ) {
428
- if ( isDenoV1 ( ) ) {
429
- continue ;
430
- }
431
407
await tester . test ( v ) ;
432
408
}
433
409
}
@@ -448,9 +424,6 @@ describe("RFC9180 conformance", () => {
448
424
it ( "should match demonstrated values" , async ( ) => {
449
425
for ( const v of testVectors ) {
450
426
if ( v . mode === 3 && v . kem_id === 0x0020 && v . aead_id === 0xFFFF ) {
451
- if ( isDenoV1 ( ) ) {
452
- continue ;
453
- }
454
427
await tester . test ( v ) ;
455
428
}
456
429
}
0 commit comments