Skip to content

cms.verify_message should validate the value of Received-Content-MIC for unsigned sent files or fail when MIC is missing. #19

Description

@adiroiban

When validating a MDN, the current code only checks for a valid signature.

But I think that it should also read the Received-Content-MIC value and make sure it is the expected value.

Also, I think that the docstring has a copy/paste error.

def verify_message(data_to_verify, signature, verify_cert):
    """Function parses an ASN.1 encrypted message and extracts/decrypts the original message.

I guess that the verify_message arguments should be extended to also pass the expected MIC value.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions