Skip to content

Add support for ML-DSA certificates - #94

Merged
maraino merged 4 commits into
masterfrom
mariano/mldsa
Sep 3, 2026
Merged

maraino merged 4 commits into
masterfrom
mariano/mldsa

Conversation

@maraino

@maraino maraino commented Sep 3, 2026 •

Copy link
Copy Markdown

This PR adds support for inspect certificates or certificate requests using an ML-DSA key or signature. This PR also moves the Curve after public key instead of being after X and Y.

When a certificate is inspected, we will show something like this

...
Signature Algorithm: ML-DSA-44
...
Public Key Algorithm: ML-DSA-65
    Public-Key: (1952 bytes)
        21:39:55:8b:23:62:df:fd:b1:77:61:0e:ea:f3:b5:
        ...
...
Signature Algorithm: ML-DSA-44
    35:31:29:45:41:41:58:9f:82:ad:bf:82:dd:28:14:35:16:fe:
    ...

Let me know if Public Key Algorithm and Public-Key look ok. For reference in a ECDSA certificate we show this:

Public Key Algorithm: ECDSA
    Public-Key: (256 bit)
    Curve: P-256
    X:
        c3:19:...
    Y:
        9c:11:...

OpenSSL shows this:

Public Key Algorithm: ML-DSA-44
    ML-DSA-44 Public-Key:
    pub:
        26:52:db:c6:39:66:be:df:12:1e:6f:eb:6d:0d:a9:
        ...

This commit adds support for inspect certificates or certificate
requests using an ML-DSA key or signature.

When a certificate is inspected, we will show something like this
...
Signature Algorithm: ML-DSA-44
...
Public Key Algorithm: ML-DSA
    Public-Key: ML-DSA-65 (1952 bytes)
        21:39:55:8b:23:62:df:fd:b1:77:61:0e:ea:f3:b5:
        ...
...
Signature Algorithm: ML-DSA-44
    35:31:29:45:41:41:58:9f:82:ad:bf:82:dd:28:14:35:16:fe:
    ...
@maraino
maraino requested a review from a team as a code owner September 3, 2026 00:38
@maraino
maraino requested a review from hslatman September 3, 2026 00:38
Comment thread test_certs/ML-DSA-44.crt.text Resolved
Comment thread certinfo.go Resolved
Comment thread mldsa_go127.go Resolved
Comment thread certinfo.go Resolved
@maraino
maraino requested a review from hslatman September 3, 2026 22:23
@maraino
maraino merged commit 37cc465 into master Sep 3, 2026
12 checks passed
@maraino
maraino deleted the mariano/mldsa branch September 3, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants