diff options
author | KOVACS Krisztian <hidden@sch.bme.hu> | 2014-08-22 10:44:36 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-08-29 21:46:36 +0800 |
commit | bbda03707cf8fbf6851b7990e0e33485c774df07 (patch) | |
tree | e0a40ae4072c04c2e5eeeba6bd196f45713cc0f6 /crypto/testmgr.c | |
parent | 10cdef5f70578b9148e29ca0f8d9f12a49c5a681 (diff) | |
download | linux-crypto-bbda03707cf8fbf6851b7990e0e33485c774df07.tar.gz linux-crypto-bbda03707cf8fbf6851b7990e0e33485c774df07.zip |
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.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index f90e91c5..9459dfd7 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -3177,6 +3177,38 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "lz4", + .test = alg_test_comp, + .fips_allowed = 1, + .suite = { + .comp = { + .comp = { + .vecs = lz4_comp_tv_template, + .count = LZ4_COMP_TEST_VECTORS + }, + .decomp = { + .vecs = lz4_decomp_tv_template, + .count = LZ4_DECOMP_TEST_VECTORS + } + } + } + }, { + .alg = "lz4hc", + .test = alg_test_comp, + .fips_allowed = 1, + .suite = { + .comp = { + .comp = { + .vecs = lz4hc_comp_tv_template, + .count = LZ4HC_COMP_TEST_VECTORS + }, + .decomp = { + .vecs = lz4hc_decomp_tv_template, + .count = LZ4HC_DECOMP_TEST_VECTORS + } + } + } + }, { .alg = "lzo", .test = alg_test_comp, .fips_allowed = 1, |