Programming assignment for Chalmers Cryptography course (code TDA351).