Skip to content
Commit 41ab999c authored by Kent Yoder's avatar Kent Yoder
Browse files

tpm: Move tpm_get_random api into the TPM device driver



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 potentially return fewer bytes than
requested.

Acked-by: default avatarDavid Safford <safford@linux.vnet.ibm.com>
Reviewed-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: default avatarKent Yoder <key@linux.vnet.ibm.com>
parent e5dcd87f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment