diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2009-03-04 02:15:49 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-03-04 02:16:19 -0500 |
commit | bf68e65ec9ea61e32ab71bef59aa5d24d255241f (patch) | |
tree | ead13a824617ee21e137eb3e75336891e30ed508 /include/crypto/compress.h | |
parent | 8064efb8740b8a0141d99a181cb5b9a430b1836c (diff) |
crypto: zlib - New zlib crypto module, using pcomp
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/compress.h')
-rw-r--r-- | include/crypto/compress.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/crypto/compress.h b/include/crypto/compress.h index b7d228708d6b..86163ef24219 100644 --- a/include/crypto/compress.h +++ b/include/crypto/compress.h | |||
@@ -30,6 +30,26 @@ struct comp_request { | |||
30 | unsigned int avail_out; /* bytes available at next_out */ | 30 | unsigned int avail_out; /* bytes available at next_out */ |
31 | }; | 31 | }; |
32 | 32 | ||
33 | enum zlib_comp_params { | ||
34 | ZLIB_COMP_LEVEL = 1, /* e.g. Z_DEFAULT_COMPRESSION */ | ||
35 | ZLIB_COMP_METHOD, /* e.g. Z_DEFLATED */ | ||
36 | ZLIB_COMP_WINDOWBITS, /* e.g. MAX_WBITS */ | ||
37 | ZLIB_COMP_MEMLEVEL, /* e.g. DEF_MEM_LEVEL */ | ||
38 | ZLIB_COMP_STRATEGY, /* e.g. Z_DEFAULT_STRATEGY */ | ||
39 | __ZLIB_COMP_MAX, | ||
40 | }; | ||
41 | |||
42 | #define ZLIB_COMP_MAX (__ZLIB_COMP_MAX - 1) | ||
43 | |||
44 | |||
45 | enum zlib_decomp_params { | ||
46 | ZLIB_DECOMP_WINDOWBITS = 1, /* e.g. DEF_WBITS */ | ||
47 | __ZLIB_DECOMP_MAX, | ||
48 | }; | ||
49 | |||
50 | #define ZLIB_DECOMP_MAX (__ZLIB_DECOMP_MAX - 1) | ||
51 | |||
52 | |||
33 | struct crypto_pcomp { | 53 | struct crypto_pcomp { |
34 | struct crypto_tfm base; | 54 | struct crypto_tfm base; |
35 | }; | 55 | }; |