This commit is contained in:
2025-11-09 08:39:41 +00:00
parent 26b883ecbc
commit 7682d5bc8b
+3 -3
View File
@@ -21,7 +21,7 @@ class TestEncryptorFinalization:
# Encrypt some data and finalize # Encrypt some data and finalize
encryptor.update(b"Hello, world!") encryptor.update(b"Hello, world!")
tag = encryptor.final() encryptor.final()
# Attempting to update after final should raise RuntimeError # Attempting to update after final should raise RuntimeError
with pytest.raises( with pytest.raises(
@@ -38,7 +38,7 @@ class TestEncryptorFinalization:
# Encrypt some data and finalize # Encrypt some data and finalize
encryptor.update(b"Hello, world!") encryptor.update(b"Hello, world!")
tag = encryptor.final() encryptor.final()
# Attempting to call final again should raise RuntimeError # Attempting to call final again should raise RuntimeError
with pytest.raises( with pytest.raises(
@@ -55,7 +55,7 @@ class TestEncryptorFinalization:
# Encrypt and finalize # Encrypt and finalize
encryptor.update(b"Test data") encryptor.update(b"Test data")
tag = encryptor.final() encryptor.final()
# Both operations should fail # Both operations should fail
with pytest.raises( with pytest.raises(