Comey for years has been targeted by President Donald Trump, who fired him as FBI director in 2017.