(self, backend)
| 34 | assert isinstance(cipher.encryptor(), base.CipherContext) |
| 35 | |
| 36 | def test_creates_decryptor(self, backend): |
| 37 | cipher = Cipher( |
| 38 | algorithms.AES(binascii.unhexlify(b"0" * 32)), |
| 39 | modes.CBC(binascii.unhexlify(b"0" * 32)), |
| 40 | backend, |
| 41 | ) |
| 42 | assert isinstance(cipher.decryptor(), base.CipherContext) |
| 43 | |
| 44 | def test_instantiate_with_non_algorithm(self, backend): |
| 45 | algorithm = object() |