25 #include <linux/module.h>
32 static int nx842_uselzo;
43 #define NX842_SENTINEL 0xdeadbeef
70 static void nx842_reset_uselzo(
unsigned long data)
75 static DEFINE_TIMER(failover_timer, nx842_reset_uselzo, 0, 0);
78 unsigned int slen,
u8 *
dst,
unsigned int *
dlen)
82 unsigned int tmp_len = *
dlen;
93 if (
likely(!nx842_uselzo)) {
119 static int nx842_crypto_decompress(
struct crypto_tfm *tfm,
const u8 *src,
120 unsigned int slen,
u8 *dst,
unsigned int *dlen)
122 struct nx842_ctx *ctx = crypto_tfm_ctx(tfm);
124 unsigned int tmp_len = *
dlen;
160 .cra_init = nx842_init,
161 .cra_exit = nx842_exit,
162 .cra_u = { .compress = {
163 .coa_compress = nx842_crypto_compress,
164 .coa_decompress = nx842_crypto_decompress } }
167 static int __init nx842_mod_init(
void)
173 static void __exit nx842_mod_exit(
void)