summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorMilan Broz <gmazyland@gmail.com>2017-04-21 13:03:06 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-04-24 18:11:04 +0800
commitde066b99acaf4cf674d5ec96fc899c2b451333b3 (patch)
treefec6e60da45e022bc96ab390d39301eb5bc564a1 /crypto
parent48ceaa2c288aa459cc6f3aade1841a742e1f7e11 (diff)
downloadlinux-crypto-de066b99acaf4cf674d5ec96fc899c2b451333b3.tar.gz
linux-crypto-de066b99acaf4cf674d5ec96fc899c2b451333b3.zip
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/testmgr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 8373c727..6b8661ee 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2910,6 +2910,7 @@ static const struct alg_test_desc alg_test_descs[] = {
}, {
.alg = "ecb(cipher_null)",
.test = alg_test_null,
+ .fips_allowed = 1,
}, {
.alg = "ecb(des)",
.test = alg_test_skcipher,