aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-06 02:27:27 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-06 02:27:27 +0300
commit18f5c1a0b63ee52c16bb8789c7b4ac1edb34d1b8 (patch)
tree70098c363626f7141b4c21975163412090a9f8e6
parenttest: don't stop after the first failure (diff)
downloadaes-tools-18f5c1a0b63ee52c16bb8789c7b4ac1edb34d1b8.tar.gz
aes-tools-18f5c1a0b63ee52c16bb8789c7b4ac1edb34d1b8.zip
test/800-38a.py: bugfix
Don't stop testing if a mismatch was encountered.
-rw-r--r--test/800-38a.py4
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: