Skip to content

Commit

Permalink
document that error checking still needs to be performed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Oct 14, 2024
1 parent f5275e1 commit c33aff0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions draft-kwiatkowski-tls-ecdhe-mlkem.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ author:
normative:
rfc7748:
FIPS203: DOI.10.6028/NIST.FIPS.203
SP56A: DOI.10.6028/NIST.SP.800-56Ar3
SP56C: DOI.10.6028/NIST.SP.800-56Cr2

informative:
Expand Down Expand Up @@ -153,6 +154,14 @@ For all groups, the server MUST perform the encapsulation key check
described in Section 7.2 of {{FIPS203}} on the client's encapsulation
key, and abort with an illegal_parameter alert if it fails.

For all groups, the client MUST perform the decapsulation input check
described in Section 7.3 of {{FIPS203}},
and abort with an illegal_parameter alert if it fails.

For all groups, both client and server MUST process the ECDH part
as described in {{Section 4.2.8.2 of !RFC8446}}, including all validity checks,
and abort with an illegal_parameter alert if it fails.

### Shared secret

For X25519MLKEM768, the shared secret is the concatenation of the ML-KEM
Expand All @@ -172,6 +181,12 @@ defined in Section 7.4.2 of {{!RFC8446}}.
The size of the shared secret is 80 bytes (48 bytes for the ECDH part and
32 bytes for the ML-KEM part).

For all groups, both client and server MUST calculate the ECDH part of the
shared secret as described in {{Section 7.4.2 of !RFC8446}}, including
the shared secret check as described in Section 5.7.1.2 of {{!SP56A}}
or the all-zero shared secret (depending on the curve), and abort the
connection with an illegal_parameter if it fails.

# Security Considerations

The same security considerations as those described in {{hybrid}} apply to the approach used by this document.
Expand Down

0 comments on commit c33aff0

Please sign in to comment.