Netgear R7800 exploration (IPQ8065, QCA9984)

Does anybody any specifics about the hardware random number generator in R7800? (likely in the ipq8065 itself)

I noticed that there is /dev/hwrng and it seems to produce random numbers with good speed. And the random numbers pass FIPS tests quite well. Based on ipq806x patch 307, the hwrng is still a pseudo-rng.

So I am considering using rng-tools to load quality entropy from /dev/hwrng to kernel, but it would be great to hear first if anybody has experimented with the built-in rng in ipq806x series.

root@lede:~# rngtest < /dev/hwrng
rngtest 5
Copyright (c) 2004 by Henrique de Moraes Holschuh
This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

rngtest: starting FIPS tests...
^Crngtest: bits received from input: 78800032
rngtest: FIPS 140-2 successes: 3933
rngtest: FIPS 140-2 failures: 7
rngtest: FIPS 140-2(2001-10-10) Monobit: 2
rngtest: FIPS 140-2(2001-10-10) Poker: 2
rngtest: FIPS 140-2(2001-10-10) Runs: 2
rngtest: FIPS 140-2(2001-10-10) Long run: 1
rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
rngtest: input channel speed: (min=110.841; avg=10080.600; max=13322.817)Kibits/s
rngtest: FIPS tests speed: (min=471.416; avg=67176.523; max=78755.040)Kibits/s
rngtest: Program run time: 8797221 microseconds
2 Likes