lkml.org 
[lkml]   [2014]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v7 0/6] SP800-90A Deterministic Random Bit Generator
On Mon, May 26, 2014 at 07:42:57AM +0200, Stephan Mueller wrote:
>
> A second aspect is the implementation of the stdrng. Currently, the offered
> patch does not include the stdrng selection. I am currently working on the
> completion of the addition of the stdrng selection to the offered patch. My
> idea is the following: currently, all DRBG types are registered with their own
> cra_name. However, there shall be one particular DRBG registered twice. When
> registering the instance again, the cra_name shall be "stdrng". In addition,
> if the kernel command line contains fips=1, the cra_priority of that stdrng
> should be set to 300. That implies that when the kernel resolves the stdrng,
> it resolves to get_random_bytes in normal mode, but to the stdrng DRBG in FIPS
> mode.

Just have all of them register as stdrng with differing priorities.
We already have a user-space interface to change priorities.

Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


\
 
 \ /
  Last update: 2014-05-30 13:21    [W:0.728 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site