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.an...@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@python.org https://mail.python.org/mailman/listinfo/cryptography-dev
_______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev