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: add generatePublicKey to ECDH, fix corner cases #4124

Closed
wants to merge 3 commits into from

Commits on Dec 2, 2015

  1. crypto: add generatePublicKey to ECDH, fix corner cases

    ECDH.generatePublicKey can get the public key using the curve
    and private key. This allows usage of the crypto module where
    a developer imports a private key, and then generates a public
    key without needing it stored.
    
    Removed the generated_ boolean from the ECDH class, and stopped
    checking for it with getPrivateKey() and getPublicKey(). This
    allows you to import public and private keys without having to
    generate first, which would just rewrite the generated keys
    regardless.
    
    An error message was changed to accurately reflect what the error
    was.
    mbullington authored and Trott committed Dec 2, 2015
    Configuration menu
    Copy the full SHA
    7a11241 View commit details
    Browse the repository at this point in the history
  2. crypto: change function name

    Change the function name of generatePublicKey to be 
    generatePublicKey instead of generateKeys.
    mbullington authored and Trott committed Dec 2, 2015
    Configuration menu
    Copy the full SHA
    15df599 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2015

  1. fixup

    Trott committed Dec 3, 2015
    Configuration menu
    Copy the full SHA
    e43de84 View commit details
    Browse the repository at this point in the history