1 """Abstract class for RC4."""
3 from compat import * #For False
6 def __init__(self, keyBytes, implementation):
7 if len(keyBytes) < 16 or len(keyBytes) > 256:
9 self.isBlockCipher = False
11 self.implementation = implementation
13 def encrypt(self, plaintext):
14 raise NotImplementedError()
16 def decrypt(self, ciphertext):
17 raise NotImplementedError()