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

Side by Side Diff: third_party/tlslite/tlslite/utils/rc4.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
OLDNEW
1 """Abstract class for RC4.""" 1 """Abstract class for RC4."""
2 2
3 from compat import * #For False 3 from compat import * #For False
4 4
5 class RC4: 5 class RC4:
6 def __init__(self, keyBytes, implementation): 6 def __init__(self, keyBytes, implementation):
7 if len(keyBytes) < 16 or len(keyBytes) > 256: 7 if len(keyBytes) < 16 or len(keyBytes) > 256:
8 raise ValueError() 8 raise ValueError()
9 self.isBlockCipher = False 9 self.isBlockCipher = False
10 self.name = "rc4" 10 self.name = "rc4"
11 self.implementation = implementation 11 self.implementation = implementation
12 12
13 def encrypt(self, plaintext): 13 def encrypt(self, plaintext):
14 raise NotImplementedError() 14 raise NotImplementedError()
15 15
16 def decrypt(self, ciphertext): 16 def decrypt(self, ciphertext):
17 raise NotImplementedError() 17 raise NotImplementedError()
OLDNEW
« no previous file with comments | « third_party/tlslite/tlslite/utils/python_rsakey.py ('k') | third_party/tlslite/tlslite/utils/rsakey.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698