Skip to content

Commit

Permalink
Merge pull request #16 from chadgates/sig_alg
Browse files Browse the repository at this point in the history
Determine correct signature algorithm.
  • Loading branch information
abhishek-ram authored May 8, 2020
2 parents 241ca9d + 56126aa commit b86dec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyas2lib/cms.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def verify_message(data_to_verify, signature, verify_cert):
if digest_alg not in DIGEST_ALGORITHMS:
raise Exception("Unsupported Digest Algorithm")

sig_alg = signer["signature_algorithm"]["algorithm"].native
sig_alg = signer["signature_algorithm"].signature_algo
sig = signer["signature"].native
signed_data = data_to_verify

Expand Down

0 comments on commit b86dec3

Please sign in to comment.