tpm: introduce tpm_buf
commita74f8b36352e79b13d48fa92759c9ea6b78d5817
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 11 Oct 2015 09:26:58 +0000 (11 12:26 +0300)
committerPeter Huewe <peterhuewe@gmx.de>
Sun, 18 Oct 2015 23:01:20 +0000 (19 01:01 +0200)
tree672ff847e04b461d4926e982506605b846426603
parentb8e98dcdc5ad24bbecc763cd0ac87bbde602e5ea
tpm: introduce tpm_buf

This patch introduces struct tpm_buf that provides a string buffer for
constructing TPM commands. This allows to construct variable sized TPM
commands. For the buffer a page is allocated and mapped, which limits
maximum size to PAGE_SIZE.

Variable sized TPM commands are needed in order to add algorithmic
agility.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm.h