tpm2: add marshaling/unmarshaling and tlcl support