diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-04-24 09:10:01 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-04-24 09:10:01 -0700 |
| commit | 288537d9c9364356a4b2f6bd947f2e89cdaa353e (patch) | |
| tree | fb246b092074adef1c5ce0e3c9e72b6d068c5bdf /drivers | |
| parent | a79be02bba5c31f967885c7f3bf3a756d77d11d9 (diff) | |
| parent | 8006aff15516a170640239c5a8e6696c0ba18d8e (diff) | |
| download | linux-next-288537d9c9364356a4b2f6bd947f2e89cdaa353e.tar.gz linux-next-288537d9c9364356a4b2f6bd947f2e89cdaa353e.zip | |
Merge tag 'v6.15-p5' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu:
- Revert acomp multibuffer tests which were buggy
- Fix off-by-one regression in new scomp code
- Lower quality setting on atmel-sha204a as it may not be random
* tag 'v6.15-p5' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
crypto: atmel-sha204a - Set hwrng quality to lowest possible
crypto: scomp - Fix off-by-one bug when calculating last page
Revert "crypto: testmgr - Add multibuffer acomp testing"
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/crypto/atmel-sha204a.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/atmel-sha204a.c b/drivers/crypto/atmel-sha204a.c index 75bebec2c757..0fcf4a39de27 100644 --- a/drivers/crypto/atmel-sha204a.c +++ b/drivers/crypto/atmel-sha204a.c @@ -163,6 +163,12 @@ static int atmel_sha204a_probe(struct i2c_client *client) i2c_priv->hwrng.name = dev_name(&client->dev); i2c_priv->hwrng.read = atmel_sha204a_rng_read; + /* + * According to review by Bill Cox [1], this HWRNG has very low entropy. + * [1] https://www.metzdowd.com/pipermail/cryptography/2014-December/023858.html + */ + i2c_priv->hwrng.quality = 1; + ret = devm_hwrng_register(&client->dev, &i2c_priv->hwrng); if (ret) dev_warn(&client->dev, "failed to register RNG (%d)\n", ret); |
