I'm using a 'try and increment' method to hash to an Elliptic Curve point, explained below.
With security parameter $k$, EC equation $y^2 = x^3 + ax + b \mbox{ mod } q$, we have:
$ u = sha256(\mbox{message}) $
$\mbox{for } i = 0 \mbox{ to } k - 1, \mbox{ do:} $
$ \quad x = (u + i) \mbox{ mod } q$
$ \quad \mbox{if } x^3 + ax + b \mbox{ is a quadratic residue in } \mathbb{F}_q \mbox{ then }$
$ \quad \quad \mbox{ return } Q = (x, \sqrt{(x^3 + ax + b}) $
$ \mbox{return Q = nil, nil}$
With the EC group generator order $n$ and the field order $q$, I would imagine that the proportion of $x \in \mathbb{F}_q$ that do not result in quadratic residues is calculated $\frac{q - n}{q}$, which would be negligible, and hence require a very small security parameter, but I have read (for example here and here?) that the proportion is close to $\frac{1}{2}$, which would require use of a much larger $k$. This is also stated here, with $p$ as $q$ and $E$ as the EC group:
An element $a$ of $\mathbb{F}_p$ is said to be a quadratic residue if there exists a nonzero $b \in \mathbb{F}_p$ such that $b^2 \equiv a \mbox{ mod }p$. In $\mathbb{F}_p$, there are exactly $(p-1)/2$ quadratic residues.
Finding points $(x, y)$ on $E$ amounts to finding those values of $x$ such that $x^3 + ax + b$ is a quadratic residue modulo $p$; hence we might expect $x^3 + ax + b$ to be a square modulo $p$ about half of the time.
How large should the security parameter be?
How do I work the proportion of $x$ coordinates, knowing $n$ and $q$, that will not result in $x^3 + ax + b$ that is a quadratic residue?