A court ruled that Humala, who governed Peru from 2011 to 2016, took illegal campaign contributions.
Prosecutors say Alejandro Toledo took $35m in bribes from a Brazilian construction company.