Commit 0fb2842
committed
Fix ECDH/ECDSA browser tests: restore local curve element length tables
The #26 change replaced the tests' own curve-length tables with calls to
cryptoECC.curveElementLength(). cryptoECC is an internal module inside the
UMD bundle and is not exposed as a global, so SubtleTests.html threw
ReferenceError: cryptoECC is not defined. Restore independent test-local
tables (keeping the new BN-254 entry); the production de-duplication in
ecdh.js/ecdsa.js/cryptoECC.js is unaffected.1 parent 1020f0f commit 0fb2842
2 files changed
Lines changed: 28 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
232 | 241 | | |
233 | 242 | | |
234 | 243 | | |
| |||
241 | 250 | | |
242 | 251 | | |
243 | 252 | | |
244 | | - | |
| 253 | + | |
245 | 254 | | |
246 | 255 | | |
247 | 256 | | |
| |||
300 | 309 | | |
301 | 310 | | |
302 | 311 | | |
303 | | - | |
| 312 | + | |
304 | 313 | | |
305 | 314 | | |
306 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
428 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
429 | 438 | | |
430 | 439 | | |
431 | 440 | | |
| |||
446 | 455 | | |
447 | 456 | | |
448 | 457 | | |
449 | | - | |
| 458 | + | |
450 | 459 | | |
451 | 460 | | |
452 | 461 | | |
| |||
489 | 498 | | |
490 | 499 | | |
491 | 500 | | |
492 | | - | |
| 501 | + | |
493 | 502 | | |
494 | 503 | | |
495 | 504 | | |
| |||
0 commit comments