Lima - Peru's maverick prime minister, Mr Javier Valle Riestra, resigned yesterday citing "totalitarian elements" in President Alberto Fujimori's power base, hitting the president with a fresh crisis after Lima accused Ecuadorean troops of entering the country.