summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2012-12-06 17:16:28 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2012-12-06 17:16:28 +0800
commitd4ca9de39ef8bf803623520b5a55ded9616f39d8 (patch)
treee514ed8164fb33e94c5b19167c2f7940b7f1ca0b /crypto
parente205d5b3960041d338ce6aa86a0119e30cb32bec (diff)
downloadlinux-crypto-d4ca9de39ef8bf803623520b5a55ded9616f39d8.tar.gz
linux-crypto-d4ca9de39ef8bf803623520b5a55ded9616f39d8.zip
crypto: testmgr - allow compression algs in fips mode
When in fips mode, compression algoritms fails to initialize, e.g. modprobe ubifs returns UBIFS error: compr_init: cannot initialize compressor lzo, error -2 FIPS mode should not care about compression algoritms at all. Patch just set fips_enabled flag to 1 to all compression algorithms managed by testmgr. Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/testmgr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 37b4c071..edf4a081 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2113,6 +2113,7 @@ static const struct alg_test_desc alg_test_descs[] = {
}, {
.alg = "deflate",
.test = alg_test_comp,
+ .fips_allowed = 1,
.suite = {
.comp = {
.comp = {
@@ -2577,6 +2578,7 @@ static const struct alg_test_desc alg_test_descs[] = {
}, {
.alg = "lzo",
.test = alg_test_comp,
+ .fips_allowed = 1,
.suite = {
.comp = {
.comp = {
@@ -2944,6 +2946,7 @@ static const struct alg_test_desc alg_test_descs[] = {
}, {
.alg = "zlib",
.test = alg_test_pcomp,
+ .fips_allowed = 1,
.suite = {
.pcomp = {
.comp = {