ECDH for packets.
generateECDHE.
avoiding pattern match.
adding EC states.
ECDH done.