Test code for mcrypt.