aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 8fa9af92..988a80b0 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -40,7 +40,15 @@ def load_nist_vectors(vector_data):
# Look for section headers
if line.startswith("[") and line.endswith("]"):
- section = line[1:-1]
+ if "=" in line:
+ # GCM section headers
+ if "Keylen" in line:
+ section = line[1:-1]
+ else:
+ section += line[1:-1]
+ else:
+ # non-GCM section headers
+ section = line[1:-1]
continue
if line.strip() == "FAIL":