Skip to content

[WIP] Add TPM2 random number generator support#3179

Closed
justincormack wants to merge 1 commit into
linuxkit:masterfrom
justincormack:tpm-rng
Closed

[WIP] Add TPM2 random number generator support#3179
justincormack wants to merge 1 commit into
linuxkit:masterfrom
justincormack:tpm-rng

Conversation

@justincormack
Copy link
Copy Markdown
Member

This should work on any platform with a tpm2 device or vtpm.

Still testing this, and need to rebuild packages. cc @deitch

pic-dump-217-20

@deitch
Copy link
Copy Markdown
Collaborator

deitch commented Sep 5, 2018

This looks good to me. I don't have an immediately accessible device with tpm2 (wish I did) or I would test it out as well.

Do we want some sort of preference of one over the other if both exist? Based on this, it looks like it tries /dev/random (assuming it to be hwrng, which may or may not be accurate) and then also tries tpm2? My assumption is that we would do one or the other.

It may be fair to say, highly unlikely to have both, but that may be a bad assumption.

@justincormack justincormack force-pushed the tpm-rng branch 2 times, most recently from 4eb26f9 to ad2ff36 Compare September 16, 2018 15:44
This should work on any platform with a tpm2 device or vtpm.

Signed-off-by: Justin Cormack <justin@specialbusservice.com>
@justincormack
Copy link
Copy Markdown
Member Author

Closing, see #4170 now the kernel handles this just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants