No entirely different engines. Viva has EJ-VE DVVT engine whereas Passo has Toyota 1KR-FE VVTi engine which is also available in Vitz, Belta, Aygo etc. Axia which is the successor of Viva has a variant similar to 1KR-FE.
Perodua belongs to Daihatsu which is owned by Toyota so they might share...