Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added support for non-canonically DER encoded (counter)signatures #99

Merged

Commits on Apr 21, 2024

  1. feat: Added support for non-canonically DER encoded (counter)signatures

    This adds deferred parsing of SignedAttributes field of SignedInfo
    structure within CMS, allowing us to directly access the raw data of
    this field so that it can be properly verified without canonical DER
    decoder in the way.
    
    To make things easier and avoid rewrite of as many code as possible,
    there's option to turn `DeferSignerInfo` structure directly into
    `SignerInfo` structure. On top of that, all other fields are decoded
    as usual, making deferred structure still useful in cases where
    non-deferred attributes are needed.
    
    Affected binary added to tests.
    metthal committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    2e5e6bf View commit details
    Browse the repository at this point in the history