]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
crypto: talitos - fix setkey to check key weakness
authorLEROY Christophe <christophe.leroy@c-s.fr>
Fri, 6 Oct 2017 13:04:37 +0000 (15:04 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Oct 2017 14:55:24 +0000 (22:55 +0800)
commitf384cdc4faf350fdb6ad93c5f26952b9ba7c7566
treedea73c3b424fb99aa507b763a936912b4ec8f1f5
parente04a61bebc5da1535b6f194b464295b8d558e2fc
crypto: talitos - fix setkey to check key weakness

Crypto manager test report the following failures:
[    3.061081] alg: skcipher: setkey failed on test 5 for ecb-des-talitos: flags=100
[    3.069342] alg: skcipher-ddst: setkey failed on test 5 for ecb-des-talitos: flags=100
[    3.077754] alg: skcipher-ddst: setkey failed on test 5 for ecb-des-talitos: flags=100

This is due to setkey being expected to detect weak keys.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c