diff --git a/pyas2lib/cms.py b/pyas2lib/cms.py index 093c49a..e67492e 100644 --- a/pyas2lib/cms.py +++ b/pyas2lib/cms.py @@ -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