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

Unified Diff: third_party/tlslite/patches/rsa_signature_length.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 side-by-side diff with in-line comments
Download patch
Index: third_party/tlslite/patches/rsa_signature_length.patch
diff --git a/third_party/tlslite/patches/rsa_signature_length.patch b/third_party/tlslite/patches/rsa_signature_length.patch
deleted file mode 100644
index 5f936a5aab6da933478003e7d3982f3e5bc5b831..0000000000000000000000000000000000000000
--- a/third_party/tlslite/patches/rsa_signature_length.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-diff --git a/third_party/tlslite/tlslite/utils/RSAKey.py b/third_party/tlslite/tlslite/utils/RSAKey.py
-index 37c292d..1b91742 100644
---- a/third_party/tlslite/tlslite/utils/RSAKey.py
-+++ b/third_party/tlslite/tlslite/utils/RSAKey.py
-@@ -117,7 +117,7 @@ class RSAKey:
- if m >= self.n:
- raise ValueError()
- c = self._rawPrivateKeyOp(m)
-- sigBytes = numberToBytes(c)
-+ sigBytes = numberToBytes(c, numBytes(self.n))
- return sigBytes
-
- def verify(self, sigBytes, bytes):
-diff --git a/third_party/tlslite/tlslite/utils/cryptomath.py b/third_party/tlslite/tlslite/utils/cryptomath.py
-index 385095d..86da25e 100644
---- a/third_party/tlslite/tlslite/utils/cryptomath.py
-+++ b/third_party/tlslite/tlslite/utils/cryptomath.py
-@@ -129,8 +129,9 @@ def bytesToNumber(bytes):
- multiplier *= 256
- return total
-
--def numberToBytes(n):
-- howManyBytes = numBytes(n)
-+def numberToBytes(n, howManyBytes=None):
-+ if howManyBytes == None:
-+ howManyBytes = numBytes(n)
- bytes = createByteArrayZeros(howManyBytes)
- for count in range(howManyBytes-1, -1, -1):
- bytes[count] = int(n % 256)
« no previous file with comments | « third_party/tlslite/patches/python26.patch ('k') | third_party/tlslite/patches/send_certificate_types.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698