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

Side by Side Diff: third_party/tlslite/tlslite/session.py

Issue 211173006: Perform tlslite 0.3.8 -> 0.4.6 renames ahead of time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop the -B Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/tlslite/tlslite/messages.py ('k') | third_party/tlslite/tlslite/sessioncache.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 """Class representing a TLS session.""" 1 """Class representing a TLS session."""
2 2
3 from utils.compat import * 3 from utils.compat import *
4 from mathtls import * 4 from mathtls import *
5 from constants import * 5 from constants import *
6 6
7 class Session: 7 class Session:
8 """ 8 """
9 This class represents a TLS session. 9 This class represents a TLS session.
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 sharedKey = chr(len(sharedKey)) + sharedKey 122 sharedKey = chr(len(sharedKey)) + sharedKey
123 for x in range(48): 123 for x in range(48):
124 premasterSecret[x] = ord(sharedKey[x % len(sharedKey)]) 124 premasterSecret[x] = ord(sharedKey[x % len(sharedKey)])
125 125
126 self.masterSecret = PRF(premasterSecret, "shared secret", 126 self.masterSecret = PRF(premasterSecret, "shared secret",
127 createByteArraySequence([]), 48) 127 createByteArraySequence([]), 48)
128 self.sharedKey = True 128 self.sharedKey = True
129 return self 129 return self
130 130
131 131
OLDNEW
« no previous file with comments | « third_party/tlslite/tlslite/messages.py ('k') | third_party/tlslite/tlslite/sessioncache.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698