Commit f385bf2
committed
Refactor key matching to support ML-DSA
The function for matching a private key with its corresponding certificate has
been refactored to be more generic. Instead of separate, hardcoded logic for
each key type (RSA, EC), a general loop now compares the relevant attributes.
This change was made to add support for matching ML-DSA keys. For ML-DSA, the
public key is represented by the CKA_VALUE attribute, which is now correctly
extracted from the certificate and compared against the public key object.
Signed-off-by: Simo Sorce <simo@redhat.com>1 parent 5d3db47 commit f385bf2
2 files changed
+26
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
93 | 105 | | |
94 | 106 | | |
95 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
626 | 634 | | |
627 | 635 | | |
628 | 636 | | |
| |||
633 | 641 | | |
634 | 642 | | |
635 | 643 | | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
659 | 648 | | |
660 | 649 | | |
661 | 650 | | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | 651 | | |
666 | 652 | | |
| 653 | + | |
| 654 | + | |
667 | 655 | | |
668 | 656 | | |
669 | 657 | | |
| |||
0 commit comments