Lines Matching refs:cipher_factory
38 def generate_encrypt_test(param_loader, path, file_names, cipher_factory, argument
44 encrypt_test(backend, cipher_factory, mode_factory, params)
49 def encrypt_test(backend, cipher_factory, mode_factory, params): argument
51 cipher_factory(**params), mode_factory(**params)
57 cipher_factory(**params),
71 def generate_aead_test(param_loader, path, file_names, cipher_factory, argument
77 aead_test(backend, cipher_factory, mode_factory, params)
82 def aead_test(backend, cipher_factory, mode_factory, params): argument
89 cipher_factory(binascii.unhexlify(params["key"])),
102 cipher_factory(binascii.unhexlify(params["key"])),
113 cipher_factory(binascii.unhexlify(params["key"])),
127 cipher_factory): argument
132 stream_encryption_test(backend, cipher_factory, params)
136 def stream_encryption_test(backend, cipher_factory, params): argument
140 cipher = Cipher(cipher_factory(**params), None, backend=backend)
245 def generate_aead_exception_test(cipher_factory, mode_factory): argument
247 aead_exception_test(backend, cipher_factory, mode_factory)
251 def aead_exception_test(backend, cipher_factory, mode_factory): argument
253 cipher_factory(binascii.unhexlify(b"0" * 32)),
271 cipher_factory(binascii.unhexlify(b"0" * 32)),
281 def generate_aead_tag_exception_test(cipher_factory, mode_factory): argument
283 aead_tag_exception_test(backend, cipher_factory, mode_factory)
287 def aead_tag_exception_test(backend, cipher_factory, mode_factory): argument
289 cipher_factory(binascii.unhexlify(b"0" * 32)),
301 cipher_factory(binascii.unhexlify(b"0" * 32)),