move ECDH implementation to crypto/ec