Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(671)

Issue 276360043: TLS 1.3 draft-10 1-rtt first review (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by ekr-rietveld
Modified:
10 years ago
Reviewers:
mt, wtc1, ttaubert
Visibility:
Public.

Description

TLS 1.3 draft-10 1-rtt first review

Patch Set 1 #

Total comments: 126

Patch Set 2 : Updated per MT's comments #

Patch Set 3 : Updated per MT comments #

Total comments: 123

Patch Set 4 : Updated per MT/WTC comments #

Patch Set 5 : Draft-11 (for self-review) #

Total comments: 11

Patch Set 6 : Revised from self-review #

Total comments: 216

Patch Set 7 : Revised per comments #

Total comments: 39

Patch Set 8 : Updated per MT/TTaubert comments #

Total comments: 84

Patch Set 9 : Revised per WTC's comments #

Patch Set 10 : Minor editorial changes #

Patch Set 11 : One more tweak #

Total comments: 60

Patch Set 12 : Revised per MT #

Total comments: 4

Patch Set 13 : Fix whitespace #

Patch Set 14 : Rebased to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4187 lines, -513 lines) Patch
M coreconf/config.mk View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/manifest.mn View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M external_tests/ssl_gtest/ssl_extension_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +20 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/ssl_loopback_unittest.cc View 1 2 3 4 5 6 7 8 21 chunks +123 lines, -31 lines 0 comments Download
M external_tests/ssl_gtest/test_io.cc View 1 chunk +1 line, -1 line 0 comments Download
M external_tests/ssl_gtest/tls_agent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +8 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/tls_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +40 lines, -1 line 0 comments Download
M external_tests/ssl_gtest/tls_connect.h View 1 2 3 4 5 6 7 9 4 chunks +11 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/tls_connect.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +30 lines, -12 lines 0 comments Download
A external_tests/ssl_gtest/tls_hkdf_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +185 lines, -0 lines 0 comments Download
M lib/ssl/SSLerrs.h View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
M lib/ssl/config.mk View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -5 lines 0 comments Download
M lib/ssl/dtlscon.c View 1 2 3 4 5 6 7 8 3 chunks +47 lines, -5 lines 0 comments Download
M lib/ssl/manifest.mn View 1 chunk +2 lines, -0 lines 0 comments Download
M lib/ssl/ssl3con.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 80 chunks +766 lines, -426 lines 0 comments Download
M lib/ssl/ssl3ecc.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +138 lines, -9 lines 0 comments Download
M lib/ssl/ssl3ext.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +324 lines, -14 lines 0 comments Download
M lib/ssl/ssl3prot.h View 1 2 3 4 5 6 3 chunks +4 lines, -1 line 0 comments Download
M lib/ssl/sslerr.h View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M lib/ssl/sslimpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +83 lines, -5 lines 0 comments Download
M lib/ssl/sslinfo.c View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M lib/ssl/sslsock.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M lib/ssl/sslt.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
A lib/ssl/tls13con.h View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 0 comments Download
A lib/ssl/tls13con.c View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2046 lines, -0 lines 0 comments Download
A lib/ssl/tls13hkdf.h View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A lib/ssl/tls13hkdf.c View 1 2 3 4 5 6 7 1 chunk +209 lines, -0 lines 0 comments Download

Messages

Total messages: 45
ekr-rietveld
10 years, 2 months ago (2015-12-07 04:46:00 UTC) #1
ekr-rietveld
MT, Can you please take a look at this. Here's what I know is missing. ...
10 years, 2 months ago (2015-12-07 04:48:38 UTC) #2
ekr-rietveld
Wan-Teh, here is a first cut. See upthread for caveats.
10 years, 2 months ago (2015-12-07 20:23:20 UTC) #3
ekr-rietveld
10 years, 2 months ago (2015-12-07 22:44:44 UTC) #4
mt
This looks pretty good on the whole. I have a few nits. I'm not really ...
10 years, 2 months ago (2015-12-08 03:22:27 UTC) #5
ekr-rietveld
MT, PTAL at patch #3. https://codereview.appspot.com/276360043/diff/1/cmd/platrules.mk File cmd/platrules.mk (right): https://codereview.appspot.com/276360043/diff/1/cmd/platrules.mk#newcode23 cmd/platrules.mk:23: ifdef NSS_ENABLE_TLS_1_3 On 2015/12/08 ...
10 years, 2 months ago (2015-12-15 19:16:33 UTC) #6
mt
LGTM https://codereview.appspot.com/276360043/diff/1/lib/ssl/ssl3con.c File lib/ssl/ssl3con.c (right): https://codereview.appspot.com/276360043/diff/1/lib/ssl/ssl3con.c#newcode6388 lib/ssl/ssl3con.c:6388: rv = ssl3_ComputeHandshakeHashes(ss, ss->ssl3.pwSpec, &hashes, 0); On 2015/12/15 ...
10 years, 2 months ago (2015-12-16 05:27:39 UTC) #7
wtc1
Review comments on patch set 3: I have reviewed the "easy" files in lib/ssl. I ...
10 years, 2 months ago (2015-12-23 00:37:01 UTC) #8
ekr-rietveld
Thanks for the thorough review. I will try to update these files tomorrow to match ...
10 years, 2 months ago (2015-12-23 01:00:29 UTC) #9
ekr-rietveld
New version. https://codereview.appspot.com/276360043/diff/1/lib/ssl/tls13con.c File lib/ssl/tls13con.c (right): https://codereview.appspot.com/276360043/diff/1/lib/ssl/tls13con.c#newcode251 lib/ssl/tls13con.c:251: return SECFailure; /* Error code set below ...
10 years, 2 months ago (2015-12-23 22:14:21 UTC) #10
ekr-rietveld
https://codereview.appspot.com/276360043/diff/80001/lib/ssl/ssl3con.c File lib/ssl/ssl3con.c (right): https://codereview.appspot.com/276360043/diff/80001/lib/ssl/ssl3con.c#newcode2935 lib/ssl/ssl3con.c:2935: PORT_Assert(ss->ssl3.cwSpec->version < SSL_LIBRARY_VERSION_TLS_1_3); Do we need this? DTLS calls ...
10 years, 1 month ago (2015-12-31 20:11:37 UTC) #11
ekr-rietveld
WTC, MT. I think this is ready for review of draft-11. In parallel I will ...
10 years, 1 month ago (2015-12-31 20:20:59 UTC) #12
mt
We're reaching the point of diminishing returns. Landing this would be a good idea in ...
10 years, 1 month ago (2016-01-04 07:42:23 UTC) #13
ekr-rietveld
Tim, can you give this a review?
10 years, 1 month ago (2016-01-04 18:19:34 UTC) #14
ekr-rietveld
MT, I did some of these but haven't pushed them yet. See below for some ...
10 years, 1 month ago (2016-01-05 00:54:41 UTC) #15
mt
LGTM https://codereview.appspot.com/276360043/diff/100001/lib/ssl/tls13con.c File lib/ssl/tls13con.c (right): https://codereview.appspot.com/276360043/diff/100001/lib/ssl/tls13con.c#newcode299 lib/ssl/tls13con.c:299: /* TODO(ekr@rtfm.com): Would it be better to check ...
10 years, 1 month ago (2016-01-05 01:58:16 UTC) #16
ttaubert
Sorry, took me a while. LGTM, didn't find anything other than a few nits. https://codereview.appspot.com/276360043/diff/100001/external_tests/ssl_gtest/ssl_loopback_unittest.cc ...
10 years, 1 month ago (2016-01-05 20:35:54 UTC) #17
ekr-rietveld
Note to self: MUST add Karthik's anti-downgrade stuff https://codereview.appspot.com/276360043/diff/100001/lib/ssl/tls13con.c File lib/ssl/tls13con.c (right): https://codereview.appspot.com/276360043/diff/100001/lib/ssl/tls13con.c#newcode451 lib/ssl/tls13con.c:451: kCertRequestContextLen); ...
10 years, 1 month ago (2016-01-05 23:25:00 UTC) #18
wtc1
Review comments on patch set 6: I only reviewed ssl3con.c this time. You can check ...
10 years, 1 month ago (2016-01-06 04:53:57 UTC) #19
ekr-rietveld
Wan-Teh Thank you for your thorough review. Upon a quick skim I think I agree ...
10 years, 1 month ago (2016-01-06 05:02:51 UTC) #20
wtc1
https://codereview.appspot.com/276360043/diff/100001/lib/ssl/ssl3con.c File lib/ssl/ssl3con.c (right): https://codereview.appspot.com/276360043/diff/100001/lib/ssl/ssl3con.c#newcode12337 lib/ssl/ssl3con.c:12337: SSL3_SendAlert(ss, alert_fatal, record_overflow); IMPORTANT: if the comment "must not ...
10 years, 1 month ago (2016-01-06 06:37:42 UTC) #21
wtc1
https://codereview.appspot.com/276360043/diff/100001/lib/ssl/ssl3con.c File lib/ssl/ssl3con.c (right): https://codereview.appspot.com/276360043/diff/100001/lib/ssl/ssl3con.c#newcode9118 lib/ssl/ssl3con.c:9118: /* Random already generated in ssl3_HandleClientHello */ On 2016/01/06 ...
10 years, 1 month ago (2016-01-06 15:17:51 UTC) #22
ekr-rietveld
MT, WTC, TTaubert, please see updated patch. https://codereview.appspot.com/276360043/diff/100001/external_tests/ssl_gtest/ssl_loopback_unittest.cc File external_tests/ssl_gtest/ssl_loopback_unittest.cc (right): https://codereview.appspot.com/276360043/diff/100001/external_tests/ssl_gtest/ssl_loopback_unittest.cc#newcode375 external_tests/ssl_gtest/ssl_loopback_unittest.cc:375: // Disabled ...
10 years, 1 month ago (2016-01-18 22:57:54 UTC) #23
ekr-rietveld
Wan-Teh, I didn't do quite what you suggested with the unprotect code, so some study ...
10 years, 1 month ago (2016-01-18 22:58:47 UTC) #24
mt
https://codereview.appspot.com/276360043/diff/100001/lib/ssl/ssl3con.c File lib/ssl/ssl3con.c (right): https://codereview.appspot.com/276360043/diff/100001/lib/ssl/ssl3con.c#newcode4595 lib/ssl/ssl3con.c:4595: ss->ssl3.hs.kea_def->signKeyType != sigAndHash->sigAlg) { On 2016/01/18 22:57:52, ekr-webrtc wrote: ...
10 years, 1 month ago (2016-01-18 23:05:08 UTC) #25
mt
Are you going to land this? I see a lot of stuff here that needs ...
10 years, 1 month ago (2016-01-21 01:18:25 UTC) #26
ekr-rietveld
Given WTC's extensive comments, I'd like to have his LGTM on ssl3con.c. Other than that, ...
10 years, 1 month ago (2016-01-21 02:30:28 UTC) #27
ttaubert
LGTM https://codereview.appspot.com/276360043/diff/120001/lib/ssl/ssl3con.c File lib/ssl/ssl3con.c (right): https://codereview.appspot.com/276360043/diff/120001/lib/ssl/ssl3con.c#newcode6387 lib/ssl/ssl3con.c:6387: if (!isTLS13) { nit: maybe invert the logic ...
10 years, 1 month ago (2016-01-21 22:39:35 UTC) #28
ekr-rietveld
https://codereview.appspot.com/276360043/diff/120001/external_tests/ssl_gtest/ssl_loopback_unittest.cc File external_tests/ssl_gtest/ssl_loopback_unittest.cc (right): https://codereview.appspot.com/276360043/diff/120001/external_tests/ssl_gtest/ssl_loopback_unittest.cc#newcode331 external_tests/ssl_gtest/ssl_loopback_unittest.cc:331: DisableDheCiphers(); // We don't support FFDHE for TLS 1.3 ...
10 years, 1 month ago (2016-01-22 00:30:30 UTC) #29
wtc1
Patch set 8 LGTM. 1. I didn't review the tests and the four new tls13* ...
10 years, 1 month ago (2016-01-24 19:49:49 UTC) #30
ekr-rietveld
This addresses WTC's review comments. MT, can you please review this diff prior to commit. ...
10 years, 1 month ago (2016-01-24 22:39:35 UTC) #31
mt
Just a reply to the question, I'll get into the review soon. https://codereview.appspot.com/276360043/diff/140001/lib/ssl/ssl3con.c File lib/ssl/ssl3con.c ...
10 years, 1 month ago (2016-01-25 02:17:34 UTC) #32
ekr-rietveld
So it's your view I simply shouldn't set this on the client? That's easy enough.
10 years, 1 month ago (2016-01-25 03:29:25 UTC) #33
ekr-rietveld
So it's your view I simply shouldn't set this on the client? That's easy enough.
10 years, 1 month ago (2016-01-25 03:29:30 UTC) #34
mt
On 2016/01/25 03:29:30, ekr-webrtc wrote: > So it's your view I simply shouldn't set this ...
10 years, 1 month ago (2016-01-25 03:42:21 UTC) #35
ekr-rietveld
Oh, I see what you are saying here. I misunderstood. If it's already the case ...
10 years, 1 month ago (2016-01-25 03:45:48 UTC) #36
mt
On 2016/01/25 03:45:48, ekr-webrtc wrote: > Oh, I see what you are saying here. I ...
10 years, 1 month ago (2016-01-25 03:49:30 UTC) #37
mt
LGTM Only one bug and that's easy to fix. The AAD should be empty. I ...
10 years, 1 month ago (2016-01-26 01:33:01 UTC) #38
ekr-rietveld
One immediate response. https://codereview.appspot.com/276360043/diff/200001/lib/ssl/tls13con.c File lib/ssl/tls13con.c (right): https://codereview.appspot.com/276360043/diff/200001/lib/ssl/tls13con.c#newcode1865 lib/ssl/tls13con.c:1865: SSL3SequenceNumber seqNum) On 2016/01/26 01:33:03, mt ...
10 years, 1 month ago (2016-01-26 02:07:38 UTC) #39
ekr-rietveld
https://codereview.appspot.com/276360043/diff/200001/cmd/platrules.mk File cmd/platrules.mk (right): https://codereview.appspot.com/276360043/diff/200001/cmd/platrules.mk#newcode28 cmd/platrules.mk:28: endif On 2016/01/26 01:33:02, mt wrote: > Hmm, I ...
10 years, 1 month ago (2016-01-26 23:07:53 UTC) #40
mt
I think that the keaKeyBits change will break things more this way, since (I think) ...
10 years, 1 month ago (2016-01-27 05:53:39 UTC) #41
ekr-rietveld
Per agreement on bugs and IM, the keaKeyBits change is safe. Fixed the whitespace. https://codereview.appspot.com/276360043/diff/220001/lib/ssl/ssl3con.c ...
10 years, 1 month ago (2016-01-28 15:31:32 UTC) #42
ekr-rietveld
MT, this was rebased to master, except for Jed's patch
10 years ago (2016-01-31 13:14:50 UTC) #43
ekr-rietveld
MT, PTAL. If you're happy I'll land this after Jed's patch
10 years ago (2016-01-31 13:15:24 UTC) #44
mt
10 years ago (2016-01-31 23:43:16 UTC) #45
Land it.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b