(self, buf)
| 110 | return m[2](method, key, iv, op) |
| 111 | |
| 112 | def encrypt(self, buf): |
| 113 | if len(buf) == 0: |
| 114 | return buf |
| 115 | if self.iv_sent: |
| 116 | return self.cipher.update(buf) |
| 117 | else: |
| 118 | self.iv_sent = True |
| 119 | return self.cipher_iv + self.cipher.update(buf) |
| 120 | |
| 121 | def decrypt(self, buf): |
| 122 | if len(buf) == 0: |