From 7ef2f8f6c8cd073ab612de78601a6249dce930f6 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 22 Apr 2014 08:37:58 -0500 Subject: fix a coverage miss in the dsa sig vector loader --- tests/test_utils.py | 11 +++++++++++ tests/utils.py | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index e7770fd0..b50c21fe 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1870,6 +1870,17 @@ d291b6da18eb0cbe51676ceb0977504eb97c27c0b191883f72fb2710a9fbd8bcf13be\ 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 479e1b84..60b6f5a2 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -454,10 +454,10 @@ def load_fips_dsa_sig_vectors(vector_data): 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 -- cgit v1.2.3