[PATCH v2 5/8] tpm: Move TCG functions into a separate file