Re: [PATCH v8 5/7] tpm: move tpm_chip definition to include/linux/tpm.h

2019-01-31 Thread Jarkko Sakkinen
On Thu, Jan 31, 2019 at 08:54:50AM +0100, Roberto Sassu wrote: > On 1/29/2019 9:34 PM, Jarkko Sakkinen wrote: > > On Thu, Jan 24, 2019 at 04:49:08PM +0100, Roberto Sassu wrote: > > > -enum tpm_const { > > > - TPM_MINOR = 224,/* officially assigned */ > > > - TPM_BUFSIZE = 4096, > > > -

Re: [PATCH v8 5/7] tpm: move tpm_chip definition to include/linux/tpm.h

2019-01-30 Thread Roberto Sassu
On 1/29/2019 9:34 PM, Jarkko Sakkinen wrote: On Thu, Jan 24, 2019 at 04:49:08PM +0100, Roberto Sassu wrote: -enum tpm_const { - TPM_MINOR = 224,/* officially assigned */ - TPM_BUFSIZE = 4096, - TPM_NUM_DEVICES = 65536, - TPM_RETRY = 50, /* 5 seconds */ -

Re: [PATCH v8 5/7] tpm: move tpm_chip definition to include/linux/tpm.h

2019-01-29 Thread Jarkko Sakkinen
On Thu, Jan 24, 2019 at 04:49:08PM +0100, Roberto Sassu wrote: > -enum tpm_const { > - TPM_MINOR = 224,/* officially assigned */ > - TPM_BUFSIZE = 4096, > - TPM_NUM_DEVICES = 65536, > - TPM_RETRY = 50, /* 5 seconds */ > - TPM_NUM_EVENT_LOG_FILES = 3, > -}; Here

[PATCH v8 5/7] tpm: move tpm_chip definition to include/linux/tpm.h

2019-01-24 Thread Roberto Sassu
The tpm_chip structure contains the list of PCR banks currently allocated in the TPM. When support for crypto agility will be added to the TPM driver, users of the driver have to provide a digest for each allocated bank to tpm_pcr_extend(). With this patch, they can obtain the PCR bank algorithms