It looks good; just one comment: The current draft says (section 3.2) A full validation according to Section 5.6.2.3.3 of [SP-800-56A] can be achieved by also checking that 0 ≤ x < p and that y^2 ≡ x^3 + a ⋅ x + b (mod p) (emphasis added).
I believe such a validation check should be mandatory. For the curves listed in the draft, the corresponding twists are not of prime order; hence someone injecting an invalid curve point has some advantage at recovering the peer’s secret value (and hence if an implementation reuses ECDHE private values, that gives them some advantage at recovering the keys for other sessions). Yes, this is not a major point (this relies on the device under attack reusing private values, which they’re not supposed to do); on the other hand, the expense is fairly minimal (just computing y^2 (after all, you’ve already computed x^3+a+b), and the additional complexity needed to perform this check), hence I believe it is warranted. Alternatively, you can mandate a safe curve (e.g. X25519), which is immune to this sort of attack. From: TLS <[email protected]> On Behalf Of John Mattsson Sent: Monday, January 16, 2023 4:45 PM To: [email protected] Subject: [TLS] FW: New Version Notification for draft-mattsson-tls-compact-ecc-00.txt Hi, I wrote a draft specifying new optimal fixed-length encodings for ECDHE and ECDHA with the NIST P-curves. This seems to be exactly what is needed for cTLS. The new encodings are defined as a subset of the old encodings which hopefully makes them easy to implement. Cheers, John From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> Date: Monday, 16 January 2023 at 22:38 To: John Mattsson <[email protected]<mailto:[email protected]>>, John Mattsson <[email protected]<mailto:[email protected]>> Subject: New Version Notification for draft-mattsson-tls-compact-ecc-00.txt A new version of I-D, draft-mattsson-tls-compact-ecc-00.txt has been successfully submitted by John Preuß Mattsson and posted to the IETF repository. Name: draft-mattsson-tls-compact-ecc Revision: 00 Title: Compact ECDHE and ECDSA Encodings for TLS 1.3 Document date: 2023-01-16 Group: Individual Submission Pages: 9 URL: https://www.ietf.org/archive/id/draft-mattsson-tls-compact-ecc-00.txt Status: https://datatracker.ietf.org/doc/draft-mattsson-tls-compact-ecc/ Html: https://www.ietf.org/archive/id/draft-mattsson-tls-compact-ecc-00.html Htmlized: https://datatracker.ietf.org/doc/html/draft-mattsson-tls-compact-ecc Abstract: The encodings used in the ECDHE groups secp256r1, secp384r1, and secp521r1 and the ECDSA signature algorithms ecdsa_secp256r1_sha256, ecdsa_secp384r1_sha384, and ecdsa_secp521r1_sha512 have significant overhead and the ECDSA encoding produces variable-length signatures. This document defines new optimal fixed-length encodings and registers new ECDHE groups and ECDSA signature algorithms using these new encodings. The new encodings reduce the size of the ECDHE groups with 33, 49, and 67 bytes and the ECDSA algorithms with an average of 7 bytes. These new encodings also work in DTLS 1.3 and are especially useful in cTLS. The IETF Secretariat
_______________________________________________ TLS mailing list [email protected] https://www.ietf.org/mailman/listinfo/tls
