In the Wikipedia article about the ElGamal signature scheme it is written, that Fermat's little theorem is used in the following proof of correctness:
From the signature generation in ElGamal we can derive, that:
$$H(m) \equiv xr + sk \pmod {p-1}$$
Then - the article states - Fermat's little theorem implies the following:
$$\begin{align} g^{H(m)} &\equiv g^{xr}g^{ks} &\pmod p\\ &\equiv (g^x)^r(g^k)^s &\pmod p\\ &\equiv (y)^r(r)^s &\pmod p \end{align}$$
The proof makes sense to me, i am just wondering, in what way Fermat's little theorem is used here, instead of just regular properties of exponentiation.