Ngā tūemi rite: Mathematics of public key cryptography