Let's suppose our device performs ECDH with a fixed, unknown, private key $\text{prv}$.
It accepts as input any point $Q$ lying in the proper subgroup of the proper elliptic curve, then computes: $P = \mathit{prv}*Q$ and outputs $P$.
An attacker who:
- has access to $P$
- can choose any valid $Q$ as input
- can call ECDH many times
can gain any information about the private key $\mathit{prv}$ ?
If not, then why a KDF is usually used on the x-coordinate of $P$ ?
Is it just to better distribute the possible outputs (since about half of possible x-coordinate won't be valid points on the curve) ?
NOTE: no smallgroups/invalid curve attacks or bad elliptic curves are considered here.