hwrng: iproc: set quality to 1000
PATCH 1/1 hwrng: iproc: set quality to 1000
This allows khwrngd to make use of iproc-rng200.
--- drivers/char/hw_random/iproc-rng200.c | 1 + 1 file changed, 1 insertion(+)
drivers/char/hw_random/iproc-rng200.c +1 -0
@@ -199,6 +199,7 @@ static int iproc_rng200_probe(struct platform_device *pdev) priv->rng.read = iproc_rng200_read; priv->rng.init = iproc_rng200_init; priv->rng.cleanup = iproc_rng200_cleanup; + priv->rng.quality =1000 ;/* Register driver */ ret =devm_hwrng_register (dev, &priv->rng);
Signature · 1 line
2.20.1
PATCH v2 1/1 hwrng: iproc: set quality to 1024
This allows khwrngd to make use of iproc-rng200.
Justification:
cat /dev/hwrng | rngtest -c 1000
rngtest 6.10
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...
rngtest: bits received from input: 20000032
rngtest: FIPS 140-2 successes: 1000
rngtest: FIPS 140-2 failures: 0
rngtest: FIPS 140-2(2001-10-10) Monobit: 0
rngtest: FIPS 140-2(2001-10-10) Poker: 0
rngtest: FIPS 140-2(2001-10-10) Runs: 0
rngtest: FIPS 140-2(2001-10-10) Long run: 0
rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
rngtest: input channel speed: (min=107.179; avg=200.770; max=9765625.000)Kibits/s
rngtest: FIPS tests speed: (min=34.742; avg=39.905; max=66.458)Mibits/s
rngtest: Program run time: 97829648 microseconds
1000 successes and 0 failures -> 100% success rate
---
v2: set quality to 1024 and add justification
drivers/char/hw_random/iproc-rng200.c | 1 + 1 file changed, 1 insertion(+)
drivers/char/hw_random/iproc-rng200.c +1 -0
@@ -199,6 +199,7 @@ static int iproc_rng200_probe(struct platform_device *pdev) priv->rng.read = iproc_rng200_read; priv->rng.init = iproc_rng200_init; priv->rng.cleanup = iproc_rng200_cleanup; + priv->rng.quality =1024 ;/* Register driver */ ret =devm_hwrng_register (dev, &priv->rng);
Signature · 1 line
2.20.1
Re: [PATCH v2] hwrng: iproc: set quality to 1024
Looks ok to me.
Quoted 21 lines · Álvaro Fernández Rojas
This allows khwrngd to make use of iproc-rng200.
Justification:
cat/dev/hwrng| rngtest -c 1000
rngtest 6.10
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...
rngtest: bits received from input: 20000032
rngtest: FIPS 140-2 successes: 1000
rngtest: FIPS 140-2 failures: 0
rngtest: FIPS 140-2(2001-10-10) Monobit: 0
rngtest: FIPS 140-2(2001-10-10) Poker: 0
rngtest: FIPS 140-2(2001-10-10) Runs: 0
rngtest: FIPS 140-2(2001-10-10) Long run: 0
rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
rngtest: input channel speed: (min=107.179; avg=200.770; max=9765625.000)Kibits/s
rngtest: FIPS tests speed: (min=34.742; avg=39.905; max=66.458)Mibits/s
rngtest: Program run time: 97829648 microseconds
Quoted 3 lines
1000 successes and 0 failures -> 100% success rate
Signed-off-by Álvaro Fernández Rojas <[email protected]>
Quoted 19 lines
---
v2: set quality to 1024 and add justificationdrivers/char/hw_random/iproc-rng200.c | 1 + 1 file changed, 1 insertion(+)drivers/char/hw_random/iproc-rng200.c +1
-0@@ -199,6 +199,7 @@ static int iproc_rng200_probe(struct platform_device *pdev) priv->rng.read = iproc_rng200_read; priv->rng.init = iproc_rng200_init; priv->rng.cleanup = iproc_rng200_cleanup; + priv->rng.quality =1024 ;/* Register driver */ ret =devm_hwrng_register (dev, &priv->rng);
Re: [PATCH v2] hwrng: iproc: set quality to 1024
In reply to Álvaro Fernández RojasHi,
Am 20.02.21 um 21:01 schrieb Álvaro Fernández Rojas:
Quoted 21 lines
This allows khwrngd to make use of iproc-rng200.
Justification:
cat/dev/hwrng| rngtest -c 1000
rngtest 6.10
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...
rngtest: bits received from input: 20000032
rngtest: FIPS 140-2 successes: 1000
rngtest: FIPS 140-2 failures: 0
rngtest: FIPS 140-2(2001-10-10) Monobit: 0
rngtest: FIPS 140-2(2001-10-10) Poker: 0
rngtest: FIPS 140-2(2001-10-10) Runs: 0
rngtest: FIPS 140-2(2001-10-10) Long run: 0
rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
rngtest: input channel speed: (min=107.179; avg=200.770; max=9765625.000)Kibits/s
rngtest: FIPS tests speed: (min=34.742; avg=39.905; max=66.458)Mibits/s
rngtest: Program run time: 97829648 microseconds
Quoted 3 lines
1000 successes and 0 failures -> 100% success rate
Signed-off-by Álvaro Fernández Rojas <[email protected]>
i just want to mention that there were concerns about such changes in the past [1]
Regards
Stefan
[1] - https://lkml.org/lkml/2020/5/14/1292
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel