aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2013-04-07 09:43:56 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2013-04-25 09:01:47 -0400
commite448370d7377f064c2fef55f72e9b45184bf0926 (patch)
treec1b49a63b85eaee8eaa45faae985fe8f9ad4e973 /crypto/testmgr.c
parente9b7441a9926b8091c01431f10231c9ceac52c8f (diff)
crypto: testmgr - add empty test vectors for null ciphers
Without these, kernel log shows: [ 5.984881] alg: No test for cipher_null (cipher_null-generic) [ 5.985096] alg: No test for ecb(cipher_null) (ecb-cipher_null) [ 5.985170] alg: No test for compress_null (compress_null-generic) [ 5.985297] alg: No test for digest_null (digest_null-generic) Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 442ddb46bbe5..f37e544dddf0 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1913,6 +1913,9 @@ static const struct alg_test_desc alg_test_descs[] = {
1913 } 1913 }
1914 } 1914 }
1915 }, { 1915 }, {
1916 .alg = "compress_null",
1917 .test = alg_test_null,
1918 }, {
1916 .alg = "crc32c", 1919 .alg = "crc32c",
1917 .test = alg_test_crc32c, 1920 .test = alg_test_crc32c,
1918 .fips_allowed = 1, 1921 .fips_allowed = 1,
@@ -2127,6 +2130,9 @@ static const struct alg_test_desc alg_test_descs[] = {
2127 } 2130 }
2128 } 2131 }
2129 }, { 2132 }, {
2133 .alg = "digest_null",
2134 .test = alg_test_null,
2135 }, {
2130 .alg = "ecb(__aes-aesni)", 2136 .alg = "ecb(__aes-aesni)",
2131 .test = alg_test_null, 2137 .test = alg_test_null,
2132 .fips_allowed = 1, 2138 .fips_allowed = 1,
@@ -2237,6 +2243,9 @@ static const struct alg_test_desc alg_test_descs[] = {
2237 } 2243 }
2238 } 2244 }
2239 }, { 2245 }, {
2246 .alg = "ecb(cipher_null)",
2247 .test = alg_test_null,
2248 }, {
2240 .alg = "ecb(des)", 2249 .alg = "ecb(des)",
2241 .test = alg_test_skcipher, 2250 .test = alg_test_skcipher,
2242 .fips_allowed = 1, 2251 .fips_allowed = 1,