REorganized decryption handling to be closer to specification

Decryption load StmF and StrF when trailer is read, and the key are dynamically calculated on copied StmF/StrF. At the moment, StrF is yet to be put in place.