Commit 1b7eafe
committed
refactor: address self-review feedback on PQC PKCS#8 validation
- Export PQC_SEEDLESS_PKCS8_LENGTHS and consume it from tests instead
of redeclaring the table in the test file.
- Replace startsWith fallback with explicit PQC_FAMILY lookup so the
import-rejection error message can't mislabel an unknown algorithm
whose seedless length happens to collide.
- Move configurePqcOutputFormats() call into HybridKeyObjectHandle
ctor (still guarded by std::call_once) so providers are configured
on first handle construction rather than per-export.
- Add ML-DSA-65 PKCS#8 round-trip + sign/verify test mirroring the
existing ML-KEM-768 round-trip.
- Replace absolute-path comment with repo-relative reference.1 parent b30fc08 commit 1b7eafe
4 files changed
Lines changed: 66 additions & 37 deletions
File tree
- example/src/tests/subtle
- packages/react-native-quick-crypto
- cpp/keys
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
2283 | 2284 | | |
2284 | 2285 | | |
2285 | 2286 | | |
2286 | | - | |
2287 | | - | |
2288 | | - | |
2289 | | - | |
2290 | | - | |
2291 | | - | |
2292 | | - | |
| 2287 | + | |
2293 | 2288 | | |
2294 | 2289 | | |
2295 | 2290 | | |
2296 | | - | |
| 2291 | + | |
2297 | 2292 | | |
2298 | 2293 | | |
2299 | 2294 | | |
| |||
2320 | 2315 | | |
2321 | 2316 | | |
2322 | 2317 | | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
2323 | 2349 | | |
2324 | 2350 | | |
2325 | 2351 | | |
| |||
2721 | 2747 | | |
2722 | 2748 | | |
2723 | 2749 | | |
2724 | | - | |
2725 | | - | |
2726 | | - | |
2727 | | - | |
2728 | | - | |
2729 | | - | |
2730 | | - | |
2731 | | - | |
2732 | | - | |
2733 | | - | |
| 2750 | + | |
2734 | 2751 | | |
2735 | 2752 | | |
2736 | 2753 | | |
2737 | | - | |
| 2754 | + | |
2738 | 2755 | | |
2739 | 2756 | | |
2740 | 2757 | | |
| |||
Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| |||
193 | 202 | | |
194 | 203 | | |
195 | 204 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
1284 | | - | |
1285 | | - | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
1286 | 1287 | | |
1287 | 1288 | | |
1288 | 1289 | | |
| |||
1291 | 1292 | | |
1292 | 1293 | | |
1293 | 1294 | | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1294 | 1306 | | |
1295 | 1307 | | |
1296 | 1308 | | |
| |||
1308 | 1320 | | |
1309 | 1321 | | |
1310 | 1322 | | |
1311 | | - | |
1312 | | - | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1313 | 1328 | | |
1314 | 1329 | | |
1315 | 1330 | | |
| |||
0 commit comments