]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
crypto: picoxcell - Forbid 2-key 3DES in FIPS mode
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 11 Apr 2019 08:51:15 +0000 (16:51 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Apr 2019 14:15:00 +0000 (22:15 +0800)
commitaa113da291e430916ed423b71c4bb7ae193af928
treed8325159acd5abf46b508d2d5dbbe2aad4eac6be
parent7f88c4d725b64d0e06993ee078eeecee9160004e
crypto: picoxcell - Forbid 2-key 3DES in FIPS mode

This patch forbids the use of 2-key 3DES (K1 == K3) in FIPS mode.

It also removes an unnecessary key length checks that are already
performed by the crypto API.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/picoxcell_crypto.c