Proper forward secrecy
I'd recommend you to read those two documents:


RFC 6090: Fundamental Elliptic Curve Cryptography Algorithms - describes all the fundamental operations in ECC algorithms (including ECDH), and includes references to further readings with more details.
The security impact of a new cryptographic library - explains design and implementation decisions behind NaCl, an OpenSSL alternative from Daniel J. Bernstein.