]> git.baikalelectronics.ru Git - 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)
commit97fd82f19a4cb5652895f814f4d1523e14485c0d
treed8325159acd5abf46b508d2d5dbbe2aad4eac6be
parentc1c4af41f3a6e055b1b0e319c7d28c43bb3ff5f1
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