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

Side by Side Diff: third_party/tlslite/patches/ssl3_padding.patch

Issue 210323002: Update tlslite to 0.4.6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Executable bit and --similarity=80 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
OLDNEW
(Empty)
1 diff --git a/third_party/tlslite/tlslite/tlsrecordlayer.py b/third_party/tlslite /tlslite/tlsrecordlayer.py
2 index ff08cbf..8b92221 100644
3 --- a/third_party/tlslite/tlslite/tlsrecordlayer.py
4 +++ b/third_party/tlslite/tlslite/tlsrecordlayer.py
5 @@ -586,10 +586,10 @@ class TLSRecordLayer(object):
6 if self.version == (3,2):
7 b = self.fixedIVBlock + b
8
9 - #Add padding: b = b+ (macBytes + paddingBytes)
10 - currentLength = len(b) + len(macBytes) + 1
11 + #Add padding: b = b + (macBytes + paddingBytes)
12 + currentLength = len(b) + len(macBytes)
13 blockLength = self._writeState.encContext.block_size
14 - paddingLength = blockLength-(currentLength % blockLength)
15 + paddingLength = blockLength - 1 - (currentLength % blockLength)
16
17 paddingBytes = bytearray([paddingLength] * (paddingLength+1))
18 if self.fault == Fault.badPadding:
OLDNEW
« no previous file with comments | « third_party/tlslite/patches/srp_cert.patch ('k') | third_party/tlslite/patches/status_request.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698