[Cryptography-dev] Elliptic Curve Documentation

John Pacific me at johnpacific.com
Tue Mar 7 02:14:09 EST 2017


Well, ECDH is just a way to establish a shared secret. You will have to
implement the encryption method yourself.

When you say ECDH, I'm going to assume you mean plain ECDH while ECDHE
(ephemeral) is what you're really going to want to use due to its security
features (forward secrecy, etc).

With that said, there is a hazmat primitive for ECDH, but I would strongly
recommend that you figure out how you would implement ECDHE with it before
you try to build anything. This primitive is:
`cryptography.hazmat.primitives.asymmetric.ec.ECDH`.

>From that, you'll get a shared secret that you can use.

On Mar 6, 2017 23:38, "Mark Anson" <mark.anson at io.net.au> wrote:

Coming from Java and BouncyCastle, I'm having trouble learning how to
implement EC using Cryptography. Is there a comprehensive tutorial anywhere?
The issue I am trying to resolve is how to implement ECDH and encrypt the
text of a message.

Mark Anson


_______________________________________________
Cryptography-dev mailing list
Cryptography-dev at python.org
https://mail.python.org/mailman/listinfo/cryptography-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20170307/508f3c60/attachment.html>


More information about the Cryptography-dev mailing list