diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-30 17:59:59 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-30 17:59:59 -0700 |
commit | a201cde67233018545120cd0245a0ffb9905e89f (patch) | |
tree | 46f36af76e4ea9d5a7ae3256027a93fd492d6825 /tests/hazmat | |
parent | ef5195f581c672a06369c0fadf07fabb6e89bf83 (diff) | |
download | cryptography-a201cde67233018545120cd0245a0ffb9905e89f.tar.gz cryptography-a201cde67233018545120cd0245a0ffb9905e89f.tar.bz2 cryptography-a201cde67233018545120cd0245a0ffb9905e89f.zip |
added a test for verify-after-finalize
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/primitives/test_cmac.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_cmac.py b/tests/hazmat/primitives/test_cmac.py index c778ebee..a2a701a0 100644 --- a/tests/hazmat/primitives/test_cmac.py +++ b/tests/hazmat/primitives/test_cmac.py @@ -166,6 +166,9 @@ class TestCMAC(object): with pytest.raises(AlreadyFinalized): cmac.finalize() + with pytest.raises(AlreadyFinalized): + cmac.verify(b"") + @pytest.mark.supported( only_if=lambda backend: backend.cmac_algorithm_supported( AES(fake_key)), |