Repository navigation
airoha: reduce HWRNG quality - #21722
Conversation
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
ca1d166 to
5cd1769
Compare
|
With these rngtest values, is it even appropriate to call it a random number generator? |
In fact, the samples look like real random data. It would require full NIST testing to confirm this.
It's hard to say how to fix it without knowing how it works inside. In the commit description, I saw that the noise comes from multiple sources, so it's probably not just the TERO loops. |
If it can be compressed, it's not random. The rngtest results look more like a catastrophic failure. I get that when base64-encoding real random data, i.e. when there are only 6 bits of entropy per byte. For the HWRNG here, we only know the upper bound is roughly 7 bits per byte, but probably way less. |
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
@hailfinger Can you measure entropy based on the provided data? |
|
It seems to me that HWRNG lacks an entropy extractor. It works like DRBG and calculates the hash. It takes 24 bytes of data as input and produces 16 bytes of entropy as output. This comes at the cost of slower noise generation. In fact, HWRNG in Aroha has DRBG, but it is faster than RAW mode, so it reduces entropy even further. |
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit 5cd1769)
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit 5cd1769) Link: openwrt#22820 Signed-off-by: Christian Marangi <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit 5cd1769) Link: openwrt#22820 Signed-off-by: Christian Marangi <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt/openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit 5cd1769) Link: openwrt/openwrt#22820 Signed-off-by: Christian Marangi <[email protected]> (cherry picked from commit 4d9eeb8642e0b7bfbcc1ca8582c8eb841053fc84)
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit 5cd1769) Link: openwrt#22820 Signed-off-by: Christian Marangi <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: openwrt/openwrt#21722 Signed-off-by: Hauke Mehrtens <[email protected]>
Backport a patch that reduces the quality of HWRNG. HWRNG has lower entropy than expected. Thanks to this patch, it has a lower priority.
Signed-off-by: Aleksander Jan Bajkowski [email protected]