tpm: add check for minimum buffer size in tpm_transmit()