diff options
author | David Reid <dreid@dreid.org> | 2013-11-12 14:06:52 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2013-11-12 14:06:52 -0800 |
commit | 89c63888e652dd54afd9b2efaa98b35cb3028a8e (patch) | |
tree | 8a6c8f64880db345e50fed268e11c6dab7fcef5b /tests/utils.py | |
parent | 5e981fc4bad969750a1a8e109ee6391fb5d4bfbc (diff) | |
parent | a43b6697255a8488cbd7e75182d06bf97bf86750 (diff) | |
download | cryptography-89c63888e652dd54afd9b2efaa98b35cb3028a8e.tar.gz cryptography-89c63888e652dd54afd9b2efaa98b35cb3028a8e.tar.bz2 cryptography-89c63888e652dd54afd9b2efaa98b35cb3028a8e.zip |
Merge pull request #182 from reaperhulk/gcm-loaders
GCM test vector loaders + tests
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py index df9232d8..8fa9af92 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -43,8 +43,12 @@ def load_nist_vectors(vector_data): section = line[1:-1] continue + if line.strip() == "FAIL": + data[section, count]["fail"] = True + continue + # Build our data using a simple Key = Value format - name, value = line.split(" = ") + name, value = [c.strip() for c in line.split("=")] # COUNT is a special token that indicates a new block of data if name.upper() == "COUNT": |