Updated encrypt.c and keygen.c

Added the test plaingtext files, also updated the PRNG usage, tag key
outfile, timestamp computation for encrypt.c