Commit 1f80a51
committed
WIP: swtpm_cert: Enable CAs with ML-DSA key to sign a certifcate
Test for GNUTLS_PK_MLDSA44 to detect whether GnuTLS supports ML-DSA.
Only SHAKE-256 can be used for hashing when ML-DSA is used for signing:
https://github.com/gnutls/gnutls/blob/df24a53136f188d77aaffe66316b0fb6ba720d40/lib/algorithms/sign.c#L405-L428
The problem is now that the size of NVRAM indices is limited to
MAX_NV_INDEX_SIZE = 2048, which is too small for a certificate created
even with ML-DSA-44, which is around 2757 bytes long.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>1 parent 0145dc1 commit 1f80a51
2 files changed
Lines changed: 45 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
223 | 242 | | |
224 | 243 | | |
225 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
984 | 986 | | |
985 | 987 | | |
986 | 988 | | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
987 | 1010 | | |
988 | 1011 | | |
989 | 1012 | | |
| |||
1018 | 1041 | | |
1019 | 1042 | | |
1020 | 1043 | | |
1021 | | - | |
| 1044 | + | |
1022 | 1045 | | |
1023 | 1046 | | |
1024 | 1047 | | |
| |||
1261 | 1284 | | |
1262 | 1285 | | |
1263 | 1286 | | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | 1287 | | |
1268 | 1288 | | |
1269 | 1289 | | |
| |||
1704 | 1724 | | |
1705 | 1725 | | |
1706 | 1726 | | |
| 1727 | + | |
| 1728 | + | |
1707 | 1729 | | |
1708 | 1730 | | |
1709 | 1731 | | |
| |||
0 commit comments