Re: [PATCH 2/3] crypto: drbg - Use callback API for random readiness

From: Herbert Xu
Date: Tue Jun 09 2015 - 09:25:00 EST


On Tue, Jun 09, 2015 at 02:23:39PM +0200, Stephan Mueller wrote:
>
> I am wondering about the error here. The Jitter RNG has in its init function a
> test to see whether the RNG really works on the hardware as there are still
> systems out there that have no high-res timer (e.g. I have seen that on old
> Android phones). If the Jitter RNG detects that the system is not appropriate,
> it will not register.

If we have no jent and the pool isn't ready then we should at least
fail in FIPS mode. If we weren't in FIPS mode we could block but
for now I'm going to go with the current behaviour of simply
continuing.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/