Commit ad22f9a
committed
Support for ML-DSA in PKCS#11
Offload ML-DSA operations onto a PKCS#11 token via the cryptoCb
interface:
* Key generation
* Signature generation
* Signature verification
* Key import
Both the pure and pre-hash versions are supported. Not yet supported are
the pre-hash versions that also offload the hashing onto the token.
This also fixes casting errors introduced in #9780 due to usage of
uintptr_t, which is unavailable without including stdint.h on some
platforms. Use the wolfssl own wc_ptr_t instead.1 parent 5a72a37 commit ad22f9a
14 files changed
Lines changed: 1283 additions & 162 deletions
File tree
- wolfcrypt/src
- wolfssl/wolfcrypt
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| 421 | + | |
421 | 422 | | |
422 | 423 | | |
423 | 424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13601 | 13601 | | |
13602 | 13602 | | |
13603 | 13603 | | |
13604 | | - | |
| 13604 | + | |
13605 | 13605 | | |
13606 | 13606 | | |
13607 | 13607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2120 | 2120 | | |
2121 | 2121 | | |
2122 | 2122 | | |
| 2123 | + | |
| 2124 | + | |
2123 | 2125 | | |
2124 | 2126 | | |
2125 | 2127 | | |
2126 | 2128 | | |
2127 | | - | |
| 2129 | + | |
2128 | 2130 | | |
2129 | 2131 | | |
2130 | 2132 | | |
| |||
2137 | 2139 | | |
2138 | 2140 | | |
2139 | 2141 | | |
| 2142 | + | |
2140 | 2143 | | |
2141 | 2144 | | |
2142 | 2145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10834 | 10834 | | |
10835 | 10835 | | |
10836 | 10836 | | |
| 10837 | + | |
| 10838 | + | |
| 10839 | + | |
| 10840 | + | |
| 10841 | + | |
| 10842 | + | |
| 10843 | + | |
| 10844 | + | |
10837 | 10845 | | |
10838 | 10846 | | |
10839 | 10847 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7894 | 7894 | | |
7895 | 7895 | | |
7896 | 7896 | | |
7897 | | - | |
| 7897 | + | |
7898 | 7898 | | |
7899 | 7899 | | |
7900 | 7900 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1062 | 1062 | | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | | - | |
| 1065 | + | |
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2305 | 2305 | | |
2306 | 2306 | | |
2307 | 2307 | | |
2308 | | - | |
| 2308 | + | |
2309 | 2309 | | |
2310 | 2310 | | |
2311 | 2311 | | |
| |||
2382 | 2382 | | |
2383 | 2383 | | |
2384 | 2384 | | |
2385 | | - | |
| 2385 | + | |
2386 | 2386 | | |
2387 | 2387 | | |
2388 | 2388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1252 | 1252 | | |
1253 | 1253 | | |
1254 | 1254 | | |
1255 | | - | |
| 1255 | + | |
1256 | 1256 | | |
1257 | 1257 | | |
1258 | 1258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1635 | 1635 | | |
1636 | 1636 | | |
1637 | 1637 | | |
1638 | | - | |
| 1638 | + | |
1639 | 1639 | | |
1640 | 1640 | | |
1641 | 1641 | | |
| |||
2117 | 2117 | | |
2118 | 2118 | | |
2119 | 2119 | | |
2120 | | - | |
| 2120 | + | |
2121 | 2121 | | |
2122 | 2122 | | |
2123 | 2123 | | |
| |||
0 commit comments