diff options
author | Zoltan Sogor <weth@inf.u-szeged.hu> | 2007-12-07 03:53:23 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-10 16:16:35 -0500 |
commit | 0b77abb3b2d0c2eee1da79a3f3bd4312a0edb156 (patch) | |
tree | 0a782303f8b8a86f66fc95c830cdf69c78289084 /crypto/tcrypt.c | |
parent | 91755a921c4af51c355bcb74a98b717d5c1818b6 (diff) |
[CRYPTO] lzo: Add LZO compression algorithm support
Add LZO compression algorithm support
Signed-off-by: Zoltan Sogor <weth@inf.u-szeged.hu>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index c8d3e600c541..943a514478bd 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -84,7 +84,7 @@ static char *check[] = { | |||
84 | "cast6", "arc4", "michael_mic", "deflate", "crc32c", "tea", "xtea", | 84 | "cast6", "arc4", "michael_mic", "deflate", "crc32c", "tea", "xtea", |
85 | "arc4", "michael_mic", "deflate", "crc32c", "tea", "xtea", | 85 | "arc4", "michael_mic", "deflate", "crc32c", "tea", "xtea", |
86 | "khazad", "wp512", "wp384", "wp256", "tnepres", "xeta", "fcrypt", | 86 | "khazad", "wp512", "wp384", "wp256", "tnepres", "xeta", "fcrypt", |
87 | "camellia", "seed", "salsa20", NULL | 87 | "camellia", "seed", "salsa20", "lzo", NULL |
88 | }; | 88 | }; |
89 | 89 | ||
90 | static void hexdump(unsigned char *buf, unsigned int len) | 90 | static void hexdump(unsigned char *buf, unsigned int len) |
@@ -1292,6 +1292,8 @@ static void do_test(void) | |||
1292 | test_comp("deflate", deflate_comp_tv_template, | 1292 | test_comp("deflate", deflate_comp_tv_template, |
1293 | deflate_decomp_tv_template, DEFLATE_COMP_TEST_VECTORS, | 1293 | deflate_decomp_tv_template, DEFLATE_COMP_TEST_VECTORS, |
1294 | DEFLATE_DECOMP_TEST_VECTORS); | 1294 | DEFLATE_DECOMP_TEST_VECTORS); |
1295 | test_comp("lzo", lzo_comp_tv_template, lzo_decomp_tv_template, | ||
1296 | LZO_COMP_TEST_VECTORS, LZO_DECOMP_TEST_VECTORS); | ||
1295 | test_hash("crc32c", crc32c_tv_template, CRC32C_TEST_VECTORS); | 1297 | test_hash("crc32c", crc32c_tv_template, CRC32C_TEST_VECTORS); |
1296 | test_hash("hmac(md5)", hmac_md5_tv_template, | 1298 | test_hash("hmac(md5)", hmac_md5_tv_template, |
1297 | HMAC_MD5_TEST_VECTORS); | 1299 | HMAC_MD5_TEST_VECTORS); |
@@ -1550,6 +1552,11 @@ static void do_test(void) | |||
1550 | AES_GCM_DEC_TEST_VECTORS); | 1552 | AES_GCM_DEC_TEST_VECTORS); |
1551 | break; | 1553 | break; |
1552 | 1554 | ||
1555 | case 36: | ||
1556 | test_comp("lzo", lzo_comp_tv_template, lzo_decomp_tv_template, | ||
1557 | LZO_COMP_TEST_VECTORS, LZO_DECOMP_TEST_VECTORS); | ||
1558 | break; | ||
1559 | |||
1553 | case 100: | 1560 | case 100: |
1554 | test_hash("hmac(md5)", hmac_md5_tv_template, | 1561 | test_hash("hmac(md5)", hmac_md5_tv_template, |
1555 | HMAC_MD5_TEST_VECTORS); | 1562 | HMAC_MD5_TEST_VECTORS); |