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

Add check for maximum signature length in ecdsa.ParseDERSignature #2135

Commits on Mar 7, 2024

  1. Add check for maximum signature length in ecdsa.ParseDERSignature

    * Updated the `ecdsa.ParseDERSignature` to include the MaxSigLen constant, which defines the maximum length of a DER encoded signature.
    * The MaxSigLen constant is set to 72 bytes, as per the explanation in the comment.
    * A new test case has been added to test the functionality with a long signature.
    * The test case checks if signatures longer than the specified maximum length are properly handled.
    * The test ensures that signatures exceeding the maximum length are correctly identified as invalid.
    SulaimanAminuBarkindo committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    9d2184e View commit details
    Browse the repository at this point in the history