Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ML-KEM-P*Keys to ASN.1 Module #91

Merged
merged 3 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion X509-ML-KEM-2024.asn
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ PublicKeys PUBLIC-KEY ::= {
}

--
-- ML-KEM Public Keys
-- ML-KEM Public Keys & Private Key
--

pk-ml-kem-512 PUBLIC-KEY ::= {
Expand All @@ -88,4 +88,8 @@ pk-ml-kem-1024 PUBLIC-KEY ::= {
--- PRIVATE-KEY no ASN.1 wrapping --
}

ML-KEM-PublicKey ::= OCTET STRING (SIZE (800 | 1184 | 1568))

ML-KEM-PrivateKey ::= OCTET STRING (SIZE (64))

END
14 changes: 8 additions & 6 deletions draft-ietf-lamps-kyber-certificates.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,20 +217,22 @@ certificate extension MUST only contain keyEncipherment
--- PRIVATE-KEY no ASN.1 wrapping --
}

ML-KEM-PublicKey ::= OCTET STRING (SIZE (800 | 1184 | 1568))
ML-KEM-PublicKey ::= OCTET STRING (SIZE (800 | 1184 | 1568))

ML-KEM-PrivateKey ::= OCTET STRING (SIZE (64))
ML-KEM-PrivateKey ::= OCTET STRING (SIZE (64))
~~~

No additional encoding of the ML-KEM public key value is applied in
the SubjectPublicKeyInfo field of an X.509 certificate {{RFC5280}}.
However, whenever it appears outside of a
certificate, it MAY be encoded as an OCTET STRING.
certificate, it MAY be encoded as an OCTET STRING by using the
ML-KEM-PublicKey type.

No additional encoding of the ML-KEM private key value is applied in
the PrivateKeyInfo field of an Asymmetric Key Package {{RFC5958}}.
However, whenever it appears outside of a
Asymmetric Key Package, it MAY be encoded as an OCTET STRING.
the PrivateKeyInfo field of the OneAsymmetricKey type of an Asymmetric
Key Package {{RFC5958}}. However, whenever it appears outside of a
Asymmetric Key Package, it MAY be encoded as an OCTET STRING by using
the ML-KEM-PrivateKey type.

# Subject Public Key Fields

Expand Down
Loading