Generating EC Keys in Python

This chapter provides tutorial notes on generating EC (Elliptic Curve) keys with Python scripts. Topics covered include using the cryptography and PyCryptodome libraries to generate EC private-public key pairs; selecting different elliptic curves; exporting and importing EC keys.

"cryptography.hazmat.primitives.asymmetric.ec" - Generate EC Keys

"serialization.load_pem_private_key()" - Load EC Private Key

"Crypto.PublicKey.ECC" - Generate EC Keys

Takeaways:

Table of Contents

 About This Book

 Geometric Introduction to Elliptic Curves

 Algebraic Introduction to Elliptic Curves

 Abelian Group and Elliptic Curves

 Discrete Logarithm Problem (DLP)

 Finite Fields

 Generators and Cyclic Subgroups

 Reduced Elliptic Curve Groups

 Elliptic Curve Subgroups

 tinyec - Python Library for ECC

 EC (Elliptic Curve) Key Pair

 ECDH (Elliptic Curve Diffie-Hellman) Key Exchange

 ECDSA (Elliptic Curve Digital Signature Algorithm)

 ECES (Elliptic Curve Encryption Scheme)

Generating EC Keys in Python

 Generating EC Keys in Java

 Standard Elliptic Curves

 Terminology

 References

 Full Version in PDF/EPUB