[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANc+2y6ru8x01tsxHKPiEEvyYZ5=gbxZuV-ok2QpjNmKFiAUMg@mail.gmail.com>
Date: Thu, 8 Dec 2016 16:31:27 +0530
From: PrasannaKumar Muralidharan <prasannatsmkumar@...il.com>
To: Corentin Labbe <clabbe.montjoie@...il.com>
Cc: Herbert Xu <herbert@...dor.apana.org.au>, davem@...emloft.net,
maxime.ripard@...e-electrons.com, Chen-Yu Tsai <wens@...e.org>,
linux-kernel@...r.kernel.org, linux-crypto@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v2] crypto: sun4i-ss: support the Security System PRNG
>> The hwrng interface was always meant to be an interface for real
>> hardware random number generators. People rely on that so we
>> should not provide bogus entropy sources through this interface.
>>
>
> Why not adding a KCONFIG HW_RANDOM_ACCEPT_ALSO_PRNG with big warning ?
> Or a HW_PRNG Kconfig which do the same than hwrandom with /dev/prng ?
> With that it will be much easier to convert in-tree PRNG that you want to remove.
I do have driver for a PRNG that I was planning to post in sometime.
Upon seeing this thread I think the code has to be changed.
I completely agree with Corentin, adding /dev/prng or /dev/hw_prng
will make it easier to move existing code. It can be made explicit
that using new device will provide only pseudo random number.
Thanks,
PrasannaKumar
Powered by blists - more mailing lists