(self, id, data)
| 338 | logically_encrypted = True |
| 339 | |
| 340 | def encrypt(self, id, data): |
| 341 | # legacy, this is only used by the tests. |
| 342 | next_iv = self.cipher.next_iv() |
| 343 | return self.cipher.encrypt(data, header=self.TYPE_STR, iv=next_iv) |
| 344 | |
| 345 | def decrypt(self, id, data): |
| 346 | self.assert_type(data[0], id) |