Merge pull request #952 from reaperhulk/fix-missing-coverage
Fix a bug/coverage miss in the DSA sig vector loader
diff --git a/tests/test_utils.py b/tests/test_utils.py
index e7770fd..b50c21f 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1870,6 +1870,17 @@
S = 18ea15bd9f00475b25204cbc23f8c23e01588015
Result = F (3 - R changed )
+ [mod = L=2048, N=224, SHA-1]
+
+ # unsupported so we ignore this
+
+ Msg = f9d01693df99a125b4f17e184331c6b6e8ca00f54f3a
+ X = e0c4b7d58836046c436fbb2322
+ Y = fb6d9bf23a07215093f319725ad0877accff
+ R = 5764e8dae0327c5bf1972ff7681b9
+ S = 475b25204cbc23f8c23e01588015
+ Result = F (3 - R changed )
+
[mod = L=2048, N=256, SHA-384]
P = e7c1c86125db9ef417da1ced7ea0861bdad629216a3f3c745df42a46b989e59f4d984\
diff --git a/tests/utils.py b/tests/utils.py
index 479e1b8..60b6f5a 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -454,10 +454,10 @@
if sha_match:
digest_algorithm = "SHA-{0}".format(sha_match.group("sha"))
- elif line.startswith("[mod = L=2048, N=224"):
+ if line.startswith("[mod = L=2048, N=224"):
reading_key_data = False
continue
- elif line.startswith("[mod = L=2048, N=256, SHA-1"):
+ elif line.startswith("[mod = L=2048, N=256"):
reading_key_data = True
continue