On Sat, Oct 08, 2016 at 10:15:57PM -0400, Nayna Jain wrote: > Like TPM 1.2, the current device driver for TPM 2.0 supports > extending only to the SHA1 PCR bank. But the TPM 2.0 supports multiple > PCR banks and the specification recommends extending to all active PCR > banks, this patch enhances the existing device driver support for > TPM 2.0 extend function and its in-kernel interface to extend to all > active PCR banks. > > The existing in-kernel interface expects only a SHA1 digest. > Hence, to extend all active PCR banks with differing digest sizes > for TPM 2.0, the SHA1 digest is padded with trailing 0's as needed. > > Signed-off-by: Nayna Jain <na...@linux.vnet.ibm.com> > --- > drivers/char/tpm/tpm-interface.c | 17 ++++++++-- > drivers/char/tpm/tpm2-cmd.c | 71 > ++++++++++++++++++++++++++-------------- > drivers/char/tpm/tpm2.h | 18 ++++++++++ > 3 files changed, 79 insertions(+), 27 deletions(-)
I'll ignore this commit because: 1. This is not used anywhere. 2. Does not apply to upstream. /Jarkko ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ tpmdd-devel mailing list tpmdd-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tpmdd-devel