I've been wondering this for a while, because everyone refers to it by shorthand, e.g. "illegal hush money". But hush money is not illegal.
Using campaign money for hush money and claiming it as "legal expenses", then cooking the books to hide it, that's what the potential prosecution is about.