Re: [PATCH 1/2] tpm: Move tpm_get_random api into the TPM device driver

2012-07-27 Thread H. Peter Anvin
On 07/27/2012 07:49 AM, Kent Yoder wrote: case Opt_new: - ret = my_get_random(payload->key, payload->key_len); + ret = tpm_get_random(TPM_ANY_NUM, payload->key, +&payload->key_len); payload->key_len is unsigned int, not s

Re: [PATCH 1/2] tpm: Move tpm_get_random api into the TPM device driver

2012-07-27 Thread Kent Yoder
On Thu, Jul 26, 2012 at 05:10:44PM -0700, H. Peter Anvin wrote: > On 06/07/2012 11:47 AM, Kent Yoder wrote: > >Move the tpm_get_random api from the trusted keys code into the TPM > >device driver itself so that other callers can make use of it. Also, > >change the api slightly so that the number of

Re: [PATCH 1/2] tpm: Move tpm_get_random api into the TPM device driver

2012-07-27 Thread Kent Yoder
On Thu, Jul 26, 2012 at 03:12:19PM -0700, H. Peter Anvin wrote: > On 06/07/2012 11:47 AM, Kent Yoder wrote: > >Move the tpm_get_random api from the trusted keys code into the TPM > >device driver itself so that other callers can make use of it. Also, > >change the api slightly so that the number of

Re: [PATCH 1/2] tpm: Move tpm_get_random api into the TPM device driver

2012-07-26 Thread H. Peter Anvin
On 06/07/2012 11:47 AM, Kent Yoder wrote: Move the tpm_get_random api from the trusted keys code into the TPM device driver itself so that other callers can make use of it. Also, change the api slightly so that the number of bytes read is returned in the call, since the TPM command can potentiall

Re: [PATCH 1/2] tpm: Move tpm_get_random api into the TPM device driver

2012-07-26 Thread H. Peter Anvin
On 06/07/2012 11:47 AM, Kent Yoder wrote: Move the tpm_get_random api from the trusted keys code into the TPM device driver itself so that other callers can make use of it. Also, change the api slightly so that the number of bytes read is returned in the call, since the TPM command can potentiall