Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: third_party/tlslite/tlslite/messages.py

Issue 1055683005: Revert of Require ECDHE for False Start. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/tlslite/tlslite/handshakesettings.py ('k') | third_party/tlslite/tlslite/tlsconnection.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tlslite/tlslite/messages.py
diff --git a/third_party/tlslite/tlslite/messages.py b/third_party/tlslite/tlslite/messages.py
index 9aeff6d010c69a699c148b34ad580609320ac0f1..f2e2cfc2455ec8c3aa2fdb010c397c5748fae0b9 100644
--- a/third_party/tlslite/tlslite/messages.py
+++ b/third_party/tlslite/tlslite/messages.py
@@ -509,13 +509,10 @@
self.srp_g = 0
self.srp_s = bytearray(0)
self.srp_B = 0
- # DH params:
+ # Anon DH params:
self.dh_p = 0
self.dh_g = 0
self.dh_Ys = 0
- # ECDH params:
- self.ecdhCurve = 0
- self.ecdhPublic = bytearray(0)
self.signature = bytearray(0)
def createSRP(self, srp_N, srp_g, srp_s, srp_B):
@@ -529,11 +526,6 @@
self.dh_p = dh_p
self.dh_g = dh_g
self.dh_Ys = dh_Ys
- return self
-
- def createECDH(self, ecdhCurve, ecdhPublic):
- self.ecdhCurve = ecdhCurve
- self.ecdhPublic = ecdhPublic
return self
def parse(self, p):
@@ -563,10 +555,6 @@
w.addVarSeq(numberToByteArray(self.dh_p), 1, 2)
w.addVarSeq(numberToByteArray(self.dh_g), 1, 2)
w.addVarSeq(numberToByteArray(self.dh_Ys), 1, 2)
- elif self.cipherSuite in CipherSuite.ecdhAllSuites:
- w.add(ECCurveType.named_curve, 1)
- w.add(self.ecdhCurve, 2)
- w.addVarSeq(self.ecdhPublic, 1, 1)
else:
assert(False)
return w.bytes
@@ -638,9 +626,7 @@
else:
raise AssertionError()
elif self.cipherSuite in CipherSuite.dhAllSuites:
- self.dh_Yc = bytesToNumber(p.getVarBytes(2))
- elif self.cipherSuite in CipherSuite.ecdhAllSuites:
- self.ecdh_Yc = p.getVarBytes(1)
+ self.dh_Yc = bytesToNumber(p.getVarBytes(2))
else:
raise AssertionError()
p.stopLengthCheck()
« no previous file with comments | « third_party/tlslite/tlslite/handshakesettings.py ('k') | third_party/tlslite/tlslite/tlsconnection.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698