]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - Allow ecb(cipher_null) in FIPS mode
authorMilan Broz <gmazyland@gmail.com>
Fri, 21 Apr 2017 11:03:06 +0000 (13:03 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 24 Apr 2017 10:11:04 +0000 (18:11 +0800)
commit9f21142bf63eebc5f44e90177b963910c53c72e4
tree68503065741cd8c22c116331a9cdd0e2400ded6e
parent41e2685aeec714dbce88f5a22ee742918131e885
crypto: testmgr - Allow ecb(cipher_null) in FIPS mode

The cipher_null is not a real cipher, FIPS mode should not restrict its use.

It is used for several tests (for example in cryptsetup testsuite) and also
temporarily for reencryption of not yet encrypted device in cryptsetup-reencrypt tool.

Problem is easily reproducible with
  cryptsetup benchmark -c null

Signed-off-by: Milan Broz <gmazyland@gmail.com>
Acked-by: Stephan Müller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c