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

crypto: improve prime size argument validation #42234

Commits on Mar 6, 2022

  1. crypto: improve prime size argument validation

    The current validation in JavaScript is insufficient and also produces
    an incorrect error message, restricting the size parameter to 32-bit
    values, whereas the C++ backend restricts the size parameter to the
    positive range of an int.
    
    This change tightens the validation in JavaScript and adapts the error
    message accordingly, making the validation in C++ superfluous.
    
    Refs: nodejs#42207
    tniessen committed Mar 6, 2022
    Configuration menu
    Copy the full SHA
    1599190 View commit details
    Browse the repository at this point in the history