WIP: swtpm_cert: Enable CAs with ML-DSA key to sign a certifcate#1064
Draft
stefanberger wants to merge 1 commit intomasterfrom
Draft
WIP: swtpm_cert: Enable CAs with ML-DSA key to sign a certifcate#1064stefanberger wants to merge 1 commit intomasterfrom
stefanberger wants to merge 1 commit intomasterfrom
Conversation
785773f to
51c5019
Compare
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 that the size of NVRAM indices is limited to MAX_NV_INDEX_SIZE = 2048, which is too small for a certificate created with ML-DSA: ML-DSA-44: ~2757 bytes ML-DSA-87: ~4964 bytes Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
51c5019 to
846228d
Compare
Owner
Author
|
Writing the larger certificates into NVRAM indices will only work with
Other choice: Wait for Falcon PQC signature algorithm since it has smaller signature sizes and hopefully EK and platform certificates that fit into existing 2048 bytes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.