20 #ifndef _CRYPTO_COMPRESS_H
21 #define _CRYPTO_COMPRESS_H
42 #define ZLIB_COMP_MAX (__ZLIB_COMP_MAX - 1)
50 #define ZLIB_DECOMP_MAX (__ZLIB_DECOMP_MAX - 1)
84 static inline void crypto_free_pcomp(
struct crypto_pcomp *tfm)
96 return __crypto_pcomp_alg(crypto_pcomp_tfm(tfm)->__crt_alg);
99 static inline int crypto_compress_setup(
struct crypto_pcomp *tfm,
100 void *
params,
unsigned int len)
102 return crypto_pcomp_alg(tfm)->compress_setup(tfm, params, len);
105 static inline int crypto_compress_init(
struct crypto_pcomp *tfm)
107 return crypto_pcomp_alg(tfm)->compress_init(tfm);
110 static inline int crypto_compress_update(
struct crypto_pcomp *tfm,
113 return crypto_pcomp_alg(tfm)->compress_update(tfm, req);
116 static inline int crypto_compress_final(
struct crypto_pcomp *tfm,
119 return crypto_pcomp_alg(tfm)->compress_final(tfm, req);
122 static inline int crypto_decompress_setup(
struct crypto_pcomp *tfm,
123 void *params,
unsigned int len)
125 return crypto_pcomp_alg(tfm)->decompress_setup(tfm, params, len);
128 static inline int crypto_decompress_init(
struct crypto_pcomp *tfm)
130 return crypto_pcomp_alg(tfm)->decompress_init(tfm);
133 static inline int crypto_decompress_update(
struct crypto_pcomp *tfm,
136 return crypto_pcomp_alg(tfm)->decompress_update(tfm, req);
139 static inline int crypto_decompress_final(
struct crypto_pcomp *tfm,
142 return crypto_pcomp_alg(tfm)->decompress_final(tfm, req);