Pātuhitia tēnei: Mathematics of public key cryptography