diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2009-03-04 15:15:49 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-03-04 15:16:19 +0800 |
commit | bf68e65ec9ea61e32ab71bef59aa5d24d255241f (patch) | |
tree | ead13a824617ee21e137eb3e75336891e30ed508 /include/crypto/compress.h | |
parent | 8064efb8740b8a0141d99a181cb5b9a430b1836c (diff) | |
download | linux-3.10-bf68e65ec9ea61e32ab71bef59aa5d24d255241f.tar.gz linux-3.10-bf68e65ec9ea61e32ab71bef59aa5d24d255241f.tar.bz2 linux-3.10-bf68e65ec9ea61e32ab71bef59aa5d24d255241f.zip |
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 b7d228708d6..86163ef2421 100644 --- a/include/crypto/compress.h +++ b/include/crypto/compress.h @@ -30,6 +30,26 @@ struct comp_request { unsigned int avail_out; /* bytes available at next_out */ }; +enum zlib_comp_params { + ZLIB_COMP_LEVEL = 1, /* e.g. Z_DEFAULT_COMPRESSION */ + ZLIB_COMP_METHOD, /* e.g. Z_DEFLATED */ + ZLIB_COMP_WINDOWBITS, /* e.g. MAX_WBITS */ + ZLIB_COMP_MEMLEVEL, /* e.g. DEF_MEM_LEVEL */ + ZLIB_COMP_STRATEGY, /* e.g. Z_DEFAULT_STRATEGY */ + __ZLIB_COMP_MAX, +}; + +#define ZLIB_COMP_MAX (__ZLIB_COMP_MAX - 1) + + +enum zlib_decomp_params { + ZLIB_DECOMP_WINDOWBITS = 1, /* e.g. DEF_WBITS */ + __ZLIB_DECOMP_MAX, +}; + +#define ZLIB_DECOMP_MAX (__ZLIB_DECOMP_MAX - 1) + + struct crypto_pcomp { struct crypto_tfm base; }; |