diff options
author | Mohammed Attia <skeuomorf@gmail.com> | 2014-03-12 18:27:59 +0200 |
---|---|---|
committer | Mohammed Attia <skeuomorf@gmail.com> | 2014-03-12 18:31:15 +0200 |
commit | 22ccb8771f9479809810506cf04b5175e1c7957c (patch) | |
tree | 8e72136d88e0563b3e3956c148e74949883e9d73 /tests/utils.py | |
parent | 98afd76692e04277fd7a81db7da9480a31cfe18c (diff) | |
download | cryptography-22ccb8771f9479809810506cf04b5175e1c7957c.tar.gz cryptography-22ccb8771f9479809810506cf04b5175e1c7957c.tar.bz2 cryptography-22ccb8771f9479809810506cf04b5175e1c7957c.zip |
Remove some of the vectors in the loader test
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/tests/utils.py b/tests/utils.py index 00f8353e..c8181585 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -372,25 +372,19 @@ def load_fips_dsa_key_pair_vectors(vector_data): if flag == "on": if line.startswith("P"): vectors.append({'p': int(line.split("=")[1], 16)}) - continue - if line.startswith("Q"): + elif line.startswith("Q"): vectors[-1]['q'] = int(line.split("=")[1], 16) - continue - if line.startswith("G"): + elif line.startswith("G"): vectors[-1]['g'] = int(line.split("=")[1], 16) - continue - if line.startswith("X") and 'x' not in vectors[-1]: + elif line.startswith("X") and 'x' not in vectors[-1]: vectors[-1]['x'] = int(line.split("=")[1], 16) - continue - if line.startswith("X") and 'x' in vectors[-1]: + elif line.startswith("X") and 'x' in vectors[-1]: vectors.append({'p': vectors[-1]['p'], 'q': vectors[-1]['q'], 'g': vectors[-1]['g'], 'x': int(line.split("=")[1], 16) }) - continue - if line.startswith("Y"): + elif line.startswith("Y"): vectors[-1]['y'] = int(line.split("=")[1], 16) - continue return vectors |