aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorKOVACS Krisztian <hidden@sch.bme.hu>2014-08-22 04:44:36 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-08-29 09:46:36 -0400
commit1443cc9bcbbbc0951fe2208fb29207a301e364d9 (patch)
tree36d9c853f1a590ab8965fa401f4711ab880c0b36 /crypto/testmgr.c
parentd801ab204b5a500b66ca285ac7b440cc79933a27 (diff)
crypto: testmgr - add test for lz4 and lz4hc
This patch adds a simple test vector for the lz4 and lz4hc compression algorithms. Signed-off-by: KOVACS Krisztian <hidden@sch.bme.hu> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index f90e91c5e47a..9459dfd7357f 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -3177,6 +3177,38 @@ static const struct alg_test_desc alg_test_descs[] = {
3177 } 3177 }
3178 } 3178 }
3179 }, { 3179 }, {
3180 .alg = "lz4",
3181 .test = alg_test_comp,
3182 .fips_allowed = 1,
3183 .suite = {
3184 .comp = {
3185 .comp = {
3186 .vecs = lz4_comp_tv_template,
3187 .count = LZ4_COMP_TEST_VECTORS
3188 },
3189 .decomp = {
3190 .vecs = lz4_decomp_tv_template,
3191 .count = LZ4_DECOMP_TEST_VECTORS
3192 }
3193 }
3194 }
3195 }, {
3196 .alg = "lz4hc",
3197 .test = alg_test_comp,
3198 .fips_allowed = 1,
3199 .suite = {
3200 .comp = {
3201 .comp = {
3202 .vecs = lz4hc_comp_tv_template,
3203 .count = LZ4HC_COMP_TEST_VECTORS
3204 },
3205 .decomp = {
3206 .vecs = lz4hc_decomp_tv_template,
3207 .count = LZ4HC_DECOMP_TEST_VECTORS
3208 }
3209 }
3210 }
3211 }, {
3180 .alg = "lzo", 3212 .alg = "lzo",
3181 .test = alg_test_comp, 3213 .test = alg_test_comp,
3182 .fips_allowed = 1, 3214 .fips_allowed = 1,