From: "Stephan Müller" <smueller@chronox.de>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: keyrings@vger.kernel.org, David Howells <dhowells@redhat.com>,
Eric Biggers <ebiggers3@gmail.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
Kirill Marinushkin <k.marinushkin@gmail.com>,
security@kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] security/keys: rewrite all of big_key crypto
Date: Wed, 07 Jun 2017 13:30:44 +0200 [thread overview]
Message-ID: <6959639.4HXaobxm8b@tauon.chronox.de> (raw)
In-Reply-To: <CAHmME9oNnWvqq6+yaeC3nyHZ4Pkiqp3e=GHCCR0BuuzGPw8q8w@mail.gmail.com>
Am Mittwoch, 7. Juni 2017, 12:09:31 CEST schrieb Jason A. Donenfeld:
Hi Jason,
> On Wed, Jun 7, 2017 at 7:14 AM, Stephan M�ller <smueller@chronox.de> wrote:
> > including those who like FIPS and Co. The crypto/rng code
>
> I'm 99% certain it was this way because the developer who wrote it
> originally didn't know what he was doing. Also, no other code anywhere
> in the kernel instantiates that generator like hat. More generally,
> though, I refuse to FIPS.
The right way to instantiate the crypto API RNG is by crypto_get_default_rng
and crypto_put_default_rng.
I can understand that you refuse FIPS. It would even be great if *nobody*
outside the crypto/testmgr.c needs to care about FIPS at all. That would imply
that the get_random_bytes provdes access to a DRBG if somebody desires FIPS.
Thus, if the get_random_bytes would provide random numbers from a pluggable
DRNG allowing users to use a DRBG if desired (or ChaCha20 or another favorite
DRNG), the entire RNG API in the kernel crypto API could be removed entirely
in favor of a get_random_bytes call everywhere.
Ciao
Stephan
prev parent reply other threads:[~2017-06-07 11:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-06 17:39 [PATCH] security/keys: rewrite all of big_key crypto Jason A. Donenfeld
2017-06-06 17:40 ` Jason A. Donenfeld
2017-06-06 17:58 ` David Howells
2017-06-06 18:25 ` Jason A. Donenfeld
2017-06-06 18:45 ` David Howells
2017-06-06 19:18 ` Jason A. Donenfeld
2017-06-06 20:58 ` Eric Biggers
2017-06-06 21:31 ` Jason A. Donenfeld
2017-06-07 5:14 ` Stephan Müller
2017-06-07 10:09 ` Jason A. Donenfeld
2017-06-07 11:30 ` Stephan Müller [this message]
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=6959639.4HXaobxm8b@tauon.chronox.de \
--to=smueller@chronox.de \
--cc=Jason@zx2c4.com \
--cc=dhowells@redhat.com \
--cc=ebiggers3@gmail.com \
--cc=herbert@gondor.apana.org.au \
--cc=k.marinushkin@gmail.com \
--cc=keyrings@vger.kernel.org \
--cc=security@kernel.org \
--cc=stable@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