tpm: Move tpm_buf code to include/linux/
authorSumit Garg <sumit.garg@linaro.org>
Wed, 16 Oct 2019 05:14:52 +0000 (10:44 +0530)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 12 Nov 2019 19:45:37 +0000 (21:45 +0200)
commit74edff2d74c64ca5977a57efb5c238c8f5318ba9
treee9c6925cd5f9f3ef214bfd98738fde76fdf92c59
parent44abdb377b7c399dfec48de7252c564bdde8d26e
tpm: Move tpm_buf code to include/linux/

Move tpm_buf code to common include/linux/tpm.h header so that it can
be reused via other subsystems like trusted keys etc.

Also rename trusted keys and asymmetric keys usage of TPM 1.x buffer
implementation to tpm1_buf to avoid any compilation errors.

Suggested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
crypto/asymmetric_keys/asym_tpm.c
drivers/char/tpm/tpm.h
include/keys/trusted.h
include/linux/tpm.h
security/keys/trusted.c