Use a random filename for outfile messages
Add a length check when armoring messages

Make an assertion that the number of bytes passed to armor matched the
constant message length.
Harden the testing of stats not being available.