New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add TPM2 random number generator support #3179

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@justincormack
Collaborator

justincormack commented Sep 4, 2018

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

This comment has been minimized.

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 justincormack:tpm-rng branch 2 times, most recently from 4eb26f9 to ad2ff36 Sep 12, 2018

Add TPM2 random number generator support
This should work on any platform with a tpm2 device or vtpm.

Signed-off-by: Justin Cormack <justin@specialbusservice.com>

@justincormack justincormack force-pushed the justincormack:tpm-rng branch from ad2ff36 to 8cf88e4 Oct 15, 2018

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