Re: [PATCH 5/5] tpm: migrate tpm2_get_random() to use struct tpm_buf

2018-03-01 Thread Jarkko Sakkinen
On Wed, Feb 28, 2018 at 09:58:18PM +0200, Jarkko Sakkinen wrote: > In order to make struct tpm_buf the first class object for constructing > TPM commands, migrate tpm2_get_random() to use it. In addition, removed > remaining references to struct tpm2_cmd. All of them use it to acquire > the length

Re: [PATCH 5/5] tpm: migrate tpm2_get_random() to use struct tpm_buf

2018-03-01 Thread Jarkko Sakkinen
On Wed, Feb 28, 2018 at 09:58:18PM +0200, Jarkko Sakkinen wrote: > In order to make struct tpm_buf the first class object for constructing > TPM commands, migrate tpm2_get_random() to use it. In addition, removed > remaining references to struct tpm2_cmd. All of them use it to acquire > the length

[PATCH 5/5] tpm: migrate tpm2_get_random() to use struct tpm_buf

2018-02-28 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_get_random() to use it. In addition, removed remaining references to struct tpm2_cmd. All of them use it to acquire the length of the response, which can be achieved by using tpm_buf_length().

[PATCH 5/5] tpm: migrate tpm2_get_random() to use struct tpm_buf

2018-02-28 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_get_random() to use it. In addition, removed remaining references to struct tpm2_cmd. All of them use it to acquire the length of the response, which can be achieved by using tpm_buf_length().