diff options
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/primitives/test_aes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hazmat/primitives/test_aes.py b/tests/hazmat/primitives/test_aes.py index f083f319..565cc11d 100644 --- a/tests/hazmat/primitives/test_aes.py +++ b/tests/hazmat/primitives/test_aes.py @@ -490,7 +490,7 @@ class TestAESModeGCM(object): def test_buffer_protocol_alternate_modes(mode, backend): data = bytearray(b"sixteen_byte_msg") cipher = base.Cipher( - algorithms.AES(bytearray(b"\x00" * 32)), mode, backend + algorithms.AES(bytearray(os.urandom(32))), mode, backend ) enc = cipher.encryptor() ct = enc.update(data) + enc.finalize() |