TOY16 Exercise.pdf describes a 12-round, 16-bit block cipher derived from the framework of Substitution-Permutation Networks. TOY16.magma is the implementation of the problem in exercise.pdf using Magma [http://magma.maths.usyd.edu.au/magma/].