Re: [PATCH 1/2] hwrng: iproc-rng200 - Set the quality value

From: Stephan Mueller
Date: Thu May 14 2020 - 16:20:51 EST


Am Donnerstag, 14. Mai 2020, 21:07:33 CEST schrieb Åukasz Stelmach:

Hi Åukasz,

> The value has been estimaded by obtainig 1024 chunks of data 128 bytes
> (1024 bits) each from the generator and finding chunk with minimal
> entropy using the ent(1) tool. The value was 6.327820 bits of entropy
> in each 8 bits of data.

I am not sure we should use the ent tool to define the entropy level. Ent
seems to use a very coarse entropy estimation.

I would feel more comfortable when using other measures like SP800-90B which
even provides a tool for the analysis.

I understand that entropy estimates, well, are estimates. But the ent data is
commonly not very conservative.

[1] https://github.com/usnistgov/SP800-90B_EntropyAssessment

Ciao
Stephan