Definitely both are illegal. Trump, under American, and International Law.
All of the unilateral acts of war, by Russia, China, Israel, Pakistan, are illegal, without authorization of the UN. That's why Bush and Blair tried so hard to get a UN authorization for the invasion of Iraq. And did not get one.
Nobody in authority seems to care much though. Till they do.