mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
fix a coverage miss in the dsa sig vector loader
This commit is contained in:
parent
7bde89fac2
commit
7ef2f8f6c8
2 changed files with 13 additions and 2 deletions
|
|
@ -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\
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue