Skip to content

random: Use DRBG sources

Andy Lutomirski lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2random: Add add_drbg_randomness to safely seed urandom from crypto hwdrivers/char/random.c include/linux/random.h include/trace/events/random.h+69 -70 replies
2/2tpm,random: Call add_drbg_randomness after selftestdrivers/char/tpm/tpm-interface.c+14 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH resend 0/2] random: Use DRBG sources

[Resent because I forgot to email lkml. This also surreptitiously
fixes a silly typo on a patch description.]

This is my attempt to come up with a workable way to use so-called entropy sources like a TPM to feed /dev/urandom.

Arguably we should be feeding the input pool as well, but if the /dev/random algorithm is correct, this shouldn't matter. I don't want sensible use of TPMs for /dev/urandom to block on a long debate about /dev/random, so these patches have no effect on /dev/random.

Andy Lutomirski (2):
random: Add add_drbg_randomness to safely seed urandom from crypto hw tpm,random: Call add_drbg_randomness after selftest

 drivers/char/random.c            | 56 +++++++++++++++++++++++++++++++++++-----
 drivers/char/tpm/tpm-interface.c | 15 ++++++++++-
 include/linux/random.h           |  1 +
 include/trace/events/random.h    | 19 ++++++++++++++
 4 files changed, 83 insertions(+), 8 deletions(-)
Signature · 1 line
1.9.0