OSDN Git Service

crypto: rockchip - Forbid 2-key 3DES in FIPS mode
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 11 Apr 2019 08:51:17 +0000 (16:51 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Apr 2019 14:15:01 +0000 (22:15 +0800)
commit1ad2267cb6202002f318103e12233fea7a60671a
tree1e0538996f2931d2711c989cb87e5468888b4d09
parent5feaaae1b549f3511475f2583badaa6e015c17bc
crypto: rockchip - Forbid 2-key 3DES in FIPS mode

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

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

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