What's the approximate computational cost of factoring $N=u^2-v^2$ when $v\ll u$? Assume $u$ and $v$ are unknown integers, with $u$ large enough that $n$ has the size of an RSA modulus.
I suspect there will be at least four ranges of $v$ as it grows, and wonder where the cutoffs are:
- $v$ is small enough that for $u_0=\left\lceil\sqrt N\,\right\rceil$ , ${u_0}^2-n$ is an integer, thus $u=u_0$ , $v=\sqrt{u^2-N}$ , and $n=(u-v)(u+v)$.
- Fermat factoring and simple improvements is competitive. The baseline tries $i$ sequentially until $(u_0+i)^2-N$ is a square, thus $u=u_0+i$ , and the rest as above.
- A method based on the Coppersmith theorem is best. I didn't knew it existed before this answer.
- GNFS becomes king.
Update: I find that (1) works for $v$ up to $\sqrt2\,N^{1/4}$.