Skip to content

Commit

Permalink
Constraints on Public & Private Keys (#82)
Browse files Browse the repository at this point in the history
* Constraints on Public & Private Keys

Similar to ML-DSA constraints; see [PR](https://github.com/lamps-wg/cms-ml-dsa/pull/13/files).

* Fix size
  • Loading branch information
seanturner authored Dec 17, 2024
1 parent 12f3ec7 commit 24e6e4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions draft-ietf-lamps-kyber-certificates.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,19 +217,19 @@ certificate extension MUST only contain keyEncipherment
--- PRIVATE-KEY no ASN.1 wrapping --
}

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

ML-KEM-PrivateKey ::= OCTET STRING
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 the ML-KEM public key value appears outside of a
However, whenever it appears outside of a
certificate, it MAY be encoded as an OCTET STRING.

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

# Subject Public Key Fields
Expand Down

0 comments on commit 24e6e4c

Please sign in to comment.