Skip to content

invalid rsaPSS format #9

Description

@mgerber

A file is signed with the following parameters: CRYPT_ALGO_SHA256 and CRYPT_PKC_FORMAT_PSS. As expected, the generated CMS contains the DigestAlgorithm SHA256 and the SignatureAlgorithm rsaPSS (1 2 840 113549 1 1 10) in SignerInfo. However, the cmsAlgorithmProtection (1 2 840 113549 1 9 52) contains the SignatureAlgorithm rsaEncryption (1 2 840 113549 1 1 1). According to RFC6211, the SignatureAlgorithm must be a copy of SignerInfo, in this case rsaPSS.
Checking signatures with correct cmsAlgorithmProtection also fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions