diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-06 02:27:27 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-06 02:27:27 +0300 |
commit | 18f5c1a0b63ee52c16bb8789c7b4ac1edb34d1b8 (patch) | |
tree | 70098c363626f7141b4c21975163412090a9f8e6 | |
parent | test: don't stop after the first failure (diff) | |
download | aes-tools-18f5c1a0b63ee52c16bb8789c7b4ac1edb34d1b8.tar.gz aes-tools-18f5c1a0b63ee52c16bb8789c7b4ac1edb34d1b8.zip |
test/800-38a.py: bugfix
Don't stop testing if a mismatch was encountered.
Diffstat (limited to '')
-rw-r--r-- | test/800-38a.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/800-38a.py b/test/800-38a.py index a8aa802..a929696 100644 --- a/test/800-38a.py +++ b/test/800-38a.py @@ -24,8 +24,8 @@ if __name__ == '__main__': key = vectors[prefix]['key'] plaintexts = vectors[prefix]['plaintexts'] ciphers = vectors[prefix]['ciphers'] - success = success and tools.detect_mismatches(plaintexts, encrypt(key, plaintexts), ciphers) - success = success and tools.detect_mismatches(ciphers, decrypt(key, ciphers), plaintexts) + success = tools.detect_mismatches(plaintexts, encrypt(key, plaintexts), ciphers) and success + success = tools.detect_mismatches(ciphers, decrypt(key, ciphers), plaintexts) and success if success: print('No mismatches detected!') else: |