1 # Author: Trevor Perrin
2 # See the LICENSE file for legal information regarding use of this file.
4 """Abstract class for RC4."""
8 def __init__(self, keyBytes, implementation):
9 if len(keyBytes) < 16 or len(keyBytes) > 256:
11 self.isBlockCipher = False
13 self.implementation = implementation
15 def encrypt(self, plaintext):
16 raise NotImplementedError()
18 def decrypt(self, ciphertext):
19 raise NotImplementedError()