Commit 36ea2bd
committed
preTBS: revert Ed25519/Ed448 alt-sig support to keep PR scope tight
wolfSSL's dual-alg-cert support does not currently exercise Ed25519 or
Ed448 alt keys, so the additional plumbing in this PR is out of scope
and only adds review surface. Revert the four Ed-specific changes:
asn.c
- wc_Ed25519PublicKeyDecode and wc_Ed448PublicKeyDecode go back to
SPKI-only input (dropping the raw-or-SPKI dual-input pattern that
mirrored Falcon/Dilithium).
- ConfirmSignature ED25519k / ED448k cases go back to direct
wc_ed25519_import_public / wc_ed448_import_public on the supplied
raw key (the historical primary-signature behaviour).
tests/api.c
- Remove test_dual_alg_unsupported_alt_native (depended on Ed25519 alt
keys reaching DecodePeerAltPubKey, which is unreachable now).
- Remove test_dual_alg_eddsa_pubkey_decode_dual_input (covered the
reverted decoder behaviour).
- Remove the ED25519_TYPE case from do_build_dual_alg_self_signed's
alt-key SPKI export switch and update the helper's pairings comment.
- Update the registration list and the negative-tests comment block.
Other dual-alg-cert work in this PR is unaffected. After the revert:
- 9 dual-alg tests still pass under the full config
(--enable-dual-alg-certs --enable-experimental --enable-dilithium
--enable-mldsa --enable-certreq --enable-certgen --enable-keygen
+ -DWOLFSSL_CUSTOM_OID -DHAVE_OID_ENCODING -DHAVE_OID_DECODING):
test_dual_alg_support
test_dual_alg_crit_ext_support
test_dual_alg_ecdsa_mldsa
test_dual_alg_pretbs_cert
test_dual_alg_pretbs_altsigval_not_last
test_dual_alg_csr_roundtrip
test_dual_alg_pretbs_csr_altsigval_not_last
test_dual_alg_collision_handshake
test_dual_alg_minkeysize_handshake
- Base config (--enable-dual-alg-certs --enable-experimental):
clean -Werror, 0 failures.
Ed25519/Ed448 alt-sig support can be added in a follow-up PR alongside
DecodePeerAltPubKey cases for those algorithms.1 parent de21606 commit 36ea2bd
2 files changed
Lines changed: 5 additions & 223 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2210 | 2210 | | |
2211 | 2211 | | |
2212 | 2212 | | |
2213 | | - | |
2214 | | - | |
2215 | | - | |
2216 | 2213 | | |
2217 | 2214 | | |
2218 | 2215 | | |
| |||
2232 | 2229 | | |
2233 | 2230 | | |
2234 | 2231 | | |
2235 | | - | |
| 2232 | + | |
2236 | 2233 | | |
2237 | 2234 | | |
2238 | 2235 | | |
| |||
2264 | 2261 | | |
2265 | 2262 | | |
2266 | 2263 | | |
2267 | | - | |
2268 | | - | |
2269 | | - | |
2270 | | - | |
2271 | | - | |
2272 | | - | |
2273 | 2264 | | |
2274 | 2265 | | |
2275 | 2266 | | |
| |||
2494 | 2485 | | |
2495 | 2486 | | |
2496 | 2487 | | |
2497 | | - | |
2498 | | - | |
2499 | | - | |
2500 | | - | |
2501 | | - | |
2502 | | - | |
2503 | | - | |
2504 | | - | |
2505 | | - | |
2506 | | - | |
2507 | | - | |
2508 | | - | |
2509 | | - | |
2510 | | - | |
2511 | | - | |
2512 | | - | |
2513 | | - | |
2514 | | - | |
2515 | | - | |
2516 | | - | |
2517 | | - | |
2518 | | - | |
2519 | | - | |
2520 | | - | |
2521 | | - | |
2522 | | - | |
2523 | | - | |
2524 | | - | |
2525 | | - | |
2526 | | - | |
2527 | | - | |
2528 | | - | |
2529 | | - | |
2530 | | - | |
2531 | | - | |
2532 | | - | |
2533 | | - | |
2534 | | - | |
2535 | | - | |
2536 | | - | |
2537 | | - | |
2538 | | - | |
2539 | | - | |
2540 | | - | |
2541 | | - | |
2542 | | - | |
2543 | | - | |
2544 | | - | |
2545 | | - | |
2546 | | - | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
2555 | | - | |
2556 | | - | |
2557 | | - | |
2558 | | - | |
2559 | | - | |
2560 | | - | |
2561 | | - | |
2562 | | - | |
2563 | | - | |
2564 | | - | |
2565 | | - | |
2566 | | - | |
2567 | | - | |
2568 | | - | |
2569 | | - | |
2570 | | - | |
2571 | | - | |
2572 | | - | |
2573 | | - | |
2574 | | - | |
2575 | | - | |
2576 | | - | |
2577 | | - | |
2578 | | - | |
2579 | | - | |
2580 | | - | |
2581 | | - | |
2582 | | - | |
2583 | | - | |
2584 | | - | |
2585 | | - | |
2586 | | - | |
2587 | | - | |
2588 | | - | |
2589 | | - | |
2590 | | - | |
2591 | | - | |
2592 | | - | |
2593 | | - | |
2594 | | - | |
2595 | | - | |
2596 | | - | |
2597 | | - | |
2598 | | - | |
2599 | | - | |
2600 | | - | |
2601 | | - | |
2602 | | - | |
2603 | | - | |
2604 | | - | |
2605 | | - | |
2606 | | - | |
2607 | | - | |
2608 | | - | |
2609 | | - | |
2610 | | - | |
2611 | | - | |
2612 | | - | |
2613 | | - | |
2614 | | - | |
2615 | | - | |
2616 | | - | |
2617 | | - | |
2618 | | - | |
2619 | | - | |
2620 | | - | |
2621 | | - | |
2622 | | - | |
2623 | | - | |
2624 | | - | |
2625 | | - | |
2626 | | - | |
2627 | | - | |
2628 | | - | |
2629 | | - | |
2630 | | - | |
2631 | | - | |
2632 | | - | |
2633 | | - | |
2634 | | - | |
2635 | | - | |
2636 | | - | |
2637 | | - | |
2638 | | - | |
2639 | | - | |
2640 | | - | |
2641 | | - | |
2642 | | - | |
2643 | | - | |
2644 | | - | |
2645 | | - | |
2646 | | - | |
2647 | | - | |
2648 | | - | |
2649 | | - | |
2650 | | - | |
2651 | | - | |
2652 | | - | |
2653 | | - | |
2654 | | - | |
2655 | | - | |
2656 | | - | |
2657 | | - | |
2658 | | - | |
2659 | | - | |
2660 | | - | |
2661 | | - | |
2662 | | - | |
2663 | | - | |
2664 | | - | |
2665 | | - | |
2666 | | - | |
2667 | | - | |
2668 | | - | |
2669 | | - | |
2670 | | - | |
2671 | | - | |
2672 | | - | |
2673 | | - | |
2674 | 2488 | | |
2675 | 2489 | | |
2676 | 2490 | | |
| |||
38108 | 37922 | | |
38109 | 37923 | | |
38110 | 37924 | | |
38111 | | - | |
38112 | | - | |
38113 | 37925 | | |
38114 | 37926 | | |
38115 | 37927 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16571 | 16571 | | |
16572 | 16572 | | |
16573 | 16573 | | |
16574 | | - | |
16575 | 16574 | | |
16576 | 16575 | | |
16577 | 16576 | | |
| |||
16585 | 16584 | | |
16586 | 16585 | | |
16587 | 16586 | | |
16588 | | - | |
16589 | | - | |
16590 | | - | |
16591 | | - | |
16592 | | - | |
16593 | | - | |
16594 | | - | |
16595 | | - | |
| 16587 | + | |
| 16588 | + | |
16596 | 16589 | | |
16597 | 16590 | | |
16598 | 16591 | | |
| |||
16606 | 16599 | | |
16607 | 16600 | | |
16608 | 16601 | | |
16609 | | - | |
16610 | 16602 | | |
16611 | 16603 | | |
16612 | 16604 | | |
| |||
16619 | 16611 | | |
16620 | 16612 | | |
16621 | 16613 | | |
16622 | | - | |
16623 | | - | |
16624 | | - | |
16625 | | - | |
| 16614 | + | |
| 16615 | + | |
16626 | 16616 | | |
16627 | 16617 | | |
16628 | 16618 | | |
| |||
32124 | 32114 | | |
32125 | 32115 | | |
32126 | 32116 | | |
32127 | | - | |
32128 | | - | |
32129 | | - | |
32130 | | - | |
32131 | | - | |
32132 | | - | |
32133 | | - | |
32134 | | - | |
32135 | | - | |
32136 | | - | |
32137 | | - | |
32138 | | - | |
32139 | | - | |
32140 | 32117 | | |
32141 | 32118 | | |
32142 | 32119 | | |
| |||
32559 | 32536 | | |
32560 | 32537 | | |
32561 | 32538 | | |
32562 | | - | |
32563 | | - | |
32564 | | - | |
32565 | | - | |
32566 | | - | |
32567 | | - | |
32568 | | - | |
32569 | 32539 | | |
32570 | 32540 | | |
32571 | 32541 | | |
| |||
0 commit comments