(self, plaintext)
| 10 | self.cipher = cipher |
| 11 | |
| 12 | def encrypt(self, plaintext): |
| 13 | encryptor = self.cipher.encryptor() |
| 14 | return encryptor.update(plaintext) + encryptor.finalize() |
| 15 | |
| 16 | def decrypt(self, ciphertext): |
| 17 | decryptor = self.cipher.decryptor() |