fixed ECDH, now method returns a valid value