home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- '''Abstract class for RC4.'''
- from compat import *
-
- class RC4:
-
- def __init__(self, keyBytes, implementation):
- if len(keyBytes) < 16 or len(keyBytes) > 256:
- raise ValueError()
- len(keyBytes) > 256
- self.isBlockCipher = False
- self.name = 'rc4'
- self.implementation = implementation
-
-
- def encrypt(self, plaintext):
- raise NotImplementedError()
-
-
- def decrypt(self, ciphertext):
- raise NotImplementedError()
-
-
-