Written ECDH processing code.
Catching exception from LPD.