Repository navigation
Commit 6543db8
authored
Specify how to handle ML-KEM/DSA PKCS8 keys in non-seed-only formats (#34)
- When importing a key in the `expandedKey` format, throw a
`NotSupportedError`.
- When importing a key in the `both` format, *optionally* throw a
`NotSupportedError`.
- Alternatively, when importing a key in the `both` format,
require checking that the seed and expanded key match.1 parent fa0ad23 commit 6543db8
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1741 | 1741 | | |
1742 | 1742 | | |
1743 | 1743 | | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1744 | 1758 | | |
1745 | 1759 | | |
1746 | 1760 | | |
| |||
2904 | 2918 | | |
2905 | 2919 | | |
2906 | 2920 | | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
2907 | 2935 | | |
2908 | 2936 | | |
2909 | 2937 | | |
| |||
0 commit comments