linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frederick Gotham <cauldwell.thomas@gmail.com>
To: linux-crypto@vger.kernel.org
Subject: Remove PRNG from Linux Kernel
Date: Fri, 8 Nov 2019 15:48:02 -0000 (UTC)	[thread overview]
Message-ID: <XnsAB01A0BBA9FB8fgotham@195.159.176.226> (raw)



Has anyone yet removed the random number generator entirely from the Linux 
kernel?

I'm currently working on an embedded x86_64 project, and I'm interfacing 
witht the TPM2 chip.

There cannot be any software-based psuedo-random number generators on my 
device, and so far I've removed three of them:

(1) The built-in PRNG inside OpenSSL
(2) The Intel RDRAND engine inside OpenSSL
(3) The simulator library that goes with the tpm2tss engine for OpenSSL 
(tcti-mssim)

The only software-based random-number generator left on my device is inside 
the Linux kernel (i.e. the one that feeds /dev/random).

I do realise that there are tools like 'rng-tools' for feeding a hardware 
generator into the entropy pool for "/dev/random" -- but this simply isn't 
good enough for my project.

I need to remove the PRNG from the Linux kernel and replace it with something 
that interfaces directly with the TPM2 chip.

Has this been done before?


             reply	other threads:[~2019-11-08 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-08 15:48 Frederick Gotham [this message]
2019-11-09  5:03 ` Remove PRNG from Linux Kernel Theodore Y. Ts'o
2019-11-09  6:36   ` Sandy Harris
2019-11-09 13:28 Thomas P. K. Healy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=XnsAB01A0BBA9FB8fgotham@195.159.176.226 \
    --to=cauldwell.thomas@gmail.com \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).