Lines Matching refs:cipher
134 cipher = Cipher(algorithms.AES(key), modes.ECB(), backend=backend)
135 encryptor = cipher.encryptor()
1251 cipher = None
1267 if block_offs % 32 == 0 or cipher is None:
1272 if cipher is None: # first pass
1273 cipher = Cipher(algorithms.AES(block_key), modes.ECB(), backend=backend)
1278 actor = cipher.encryptor() if do_decrypt else cipher.decryptor()
1300 cipher.algorithm.key = block_key
1301 actor = cipher.encryptor() if do_decrypt else cipher.decryptor()
1363 cipher = Cipher(algorithms.AES(key), modes.XTS(tweak), backend=backend)
1364 encryptor = cipher.decryptor() if do_decrypt else cipher.encryptor()