MCPcopy
hub / github.com/pyca/cryptography / test_creates_decryptor

Method test_creates_decryptor

tests/hazmat/primitives/test_block.py:36–42  ·  view source on GitHub ↗
(self, backend)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 3

decryptorMethod · 0.95
CipherClass · 0.90
unhexlifyMethod · 0.80

Tested by

no test coverage detected