Home
last modified time | relevance | path

Searched refs:dlen (Results 1 – 15 of 15) sorted by relevance

/crypto/
Dlz4.c54 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_compress_crypto() argument
57 slen, *dlen, ctx); in __lz4_compress_crypto()
62 *dlen = out_len; in __lz4_compress_crypto()
67 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4_scompress() argument
70 return __lz4_compress_crypto(src, slen, dst, dlen, ctx); in lz4_scompress()
74 unsigned int slen, u8 *dst, unsigned int *dlen) in lz4_compress_crypto() argument
78 return __lz4_compress_crypto(src, slen, dst, dlen, ctx->lz4_comp_mem); in lz4_compress_crypto()
82 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_decompress_crypto() argument
84 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4_decompress_crypto()
89 *dlen = out_len; in __lz4_decompress_crypto()
[all …]
Dlz4hc.c53 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_compress_crypto() argument
56 *dlen, LZ4HC_DEFAULT_CLEVEL, ctx); in __lz4hc_compress_crypto()
61 *dlen = out_len; in __lz4hc_compress_crypto()
66 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4hc_scompress() argument
69 return __lz4hc_compress_crypto(src, slen, dst, dlen, ctx); in lz4hc_scompress()
74 unsigned int *dlen) in lz4hc_compress_crypto() argument
78 return __lz4hc_compress_crypto(src, slen, dst, dlen, in lz4hc_compress_crypto()
83 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_decompress_crypto() argument
85 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4hc_decompress_crypto()
90 *dlen = out_len; in __lz4hc_decompress_crypto()
[all …]
Dlzo-rle.c53 u8 *dst, unsigned int *dlen, void *ctx) in __lzorle_compress() argument
55 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzorle_compress()
63 *dlen = tmp_len; in __lzorle_compress()
68 unsigned int slen, u8 *dst, unsigned int *dlen) in lzorle_compress() argument
72 return __lzorle_compress(src, slen, dst, dlen, ctx->lzorle_comp_mem); in lzorle_compress()
76 unsigned int slen, u8 *dst, unsigned int *dlen, in lzorle_scompress() argument
79 return __lzorle_compress(src, slen, dst, dlen, ctx); in lzorle_scompress()
83 u8 *dst, unsigned int *dlen) in __lzorle_decompress() argument
86 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzorle_decompress()
93 *dlen = tmp_len; in __lzorle_decompress()
[all …]
Dlzo.c53 u8 *dst, unsigned int *dlen, void *ctx) in __lzo_compress() argument
55 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzo_compress()
63 *dlen = tmp_len; in __lzo_compress()
68 unsigned int slen, u8 *dst, unsigned int *dlen) in lzo_compress() argument
72 return __lzo_compress(src, slen, dst, dlen, ctx->lzo_comp_mem); in lzo_compress()
76 unsigned int slen, u8 *dst, unsigned int *dlen, in lzo_scompress() argument
79 return __lzo_compress(src, slen, dst, dlen, ctx); in lzo_scompress()
83 u8 *dst, unsigned int *dlen) in __lzo_decompress() argument
86 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzo_decompress()
93 *dlen = tmp_len; in __lzo_decompress()
[all …]
Dzstd.c151 u8 *dst, unsigned int *dlen, void *ctx) in __zstd_compress() argument
157 out_len = ZSTD_compressCCtx(zctx->cctx, dst, *dlen, src, slen, params); in __zstd_compress()
160 *dlen = out_len; in __zstd_compress()
165 unsigned int slen, u8 *dst, unsigned int *dlen) in zstd_compress() argument
169 return __zstd_compress(src, slen, dst, dlen, ctx); in zstd_compress()
173 unsigned int slen, u8 *dst, unsigned int *dlen, in zstd_scompress() argument
176 return __zstd_compress(src, slen, dst, dlen, ctx); in zstd_scompress()
180 u8 *dst, unsigned int *dlen, void *ctx) in __zstd_decompress() argument
185 out_len = ZSTD_decompressDCtx(zctx->dctx, dst, *dlen, src, slen); in __zstd_decompress()
188 *dlen = out_len; in __zstd_decompress()
[all …]
D842.c67 u8 *dst, unsigned int *dlen) in crypto842_compress() argument
71 return sw842_compress(src, slen, dst, dlen, ctx->wmem); in crypto842_compress()
76 u8 *dst, unsigned int *dlen, void *ctx) in crypto842_scompress() argument
78 return sw842_compress(src, slen, dst, dlen, ctx); in crypto842_scompress()
83 u8 *dst, unsigned int *dlen) in crypto842_decompress() argument
85 return sw842_decompress(src, slen, dst, dlen); in crypto842_decompress()
90 u8 *dst, unsigned int *dlen, void *ctx) in crypto842_sdecompress() argument
92 return sw842_decompress(src, slen, dst, dlen); in crypto842_sdecompress()
Ddeflate.c177 u8 *dst, unsigned int *dlen, void *ctx) in __deflate_compress() argument
192 stream->avail_out = *dlen; in __deflate_compress()
200 *dlen = stream->total_out; in __deflate_compress()
206 unsigned int slen, u8 *dst, unsigned int *dlen) in deflate_compress() argument
210 return __deflate_compress(src, slen, dst, dlen, dctx); in deflate_compress()
214 unsigned int slen, u8 *dst, unsigned int *dlen, in deflate_scompress() argument
217 return __deflate_compress(src, slen, dst, dlen, ctx); in deflate_scompress()
221 u8 *dst, unsigned int *dlen, void *ctx) in __deflate_decompress() argument
237 stream->avail_out = *dlen; in __deflate_decompress()
256 *dlen = stream->total_out; in __deflate_decompress()
[all …]
Dcompress.c17 u8 *dst, unsigned int *dlen) in crypto_compress() argument
20 dlen); in crypto_compress()
25 u8 *dst, unsigned int *dlen) in crypto_decompress() argument
28 dlen); in crypto_decompress()
Dscompress.c132 if (req->dst && !req->dlen) in scomp_acomp_comp_decomp()
135 if (!req->dlen || req->dlen > SCOMP_SCRATCH_SIZE) in scomp_acomp_comp_decomp()
136 req->dlen = SCOMP_SCRATCH_SIZE; in scomp_acomp_comp_decomp()
144 scratch->dst, &req->dlen, *ctx); in scomp_acomp_comp_decomp()
147 scratch->dst, &req->dlen, *ctx); in scomp_acomp_comp_decomp()
150 req->dst = sgl_alloc(req->dlen, GFP_ATOMIC, NULL); in scomp_acomp_comp_decomp()
156 scatterwalk_map_and_copy(scratch->dst, req->dst, 0, req->dlen, in scomp_acomp_comp_decomp()
Dcrypto_null.c28 unsigned int slen, u8 *dst, unsigned int *dlen) in null_compress() argument
30 if (slen > *dlen) in null_compress()
33 *dlen = slen; in null_compress()
Dansi_cprng.c350 u8 *rdata, unsigned int dlen) in cprng_get_random() argument
354 return get_prng_bytes(rdata, dlen, prng, 0); in cprng_get_random()
386 u8 *rdata, unsigned int dlen) in fips_cprng_get_random() argument
390 return get_prng_bytes(rdata, dlen, prng, 1); in fips_cprng_get_random()
Djitterentropy-kcapi.c145 u8 *rdata, unsigned int dlen) in jent_kcapi_random() argument
151 ret = jent_read_entropy(rng->entropy_collector, rdata, dlen); in jent_kcapi_random()
Dtestmgr.c2920 unsigned int dlen = COMP_BUF_SIZE; in test_comp() local
2927 ilen, output, &dlen); in test_comp()
2935 ilen = dlen; in test_comp()
2936 dlen = COMP_BUF_SIZE; in test_comp()
2938 ilen, decomp_output, &dlen); in test_comp()
2945 if (dlen != ctemplate[i].inlen) { in test_comp()
2948 dlen); in test_comp()
2957 hexdump(decomp_output, dlen); in test_comp()
2965 unsigned int dlen = COMP_BUF_SIZE; in test_comp() local
2971 ilen, decomp_output, &dlen); in test_comp()
[all …]
Dalgapi.c1241 void crypto_stats_rng_generate(struct crypto_alg *alg, unsigned int dlen, in crypto_stats_rng_generate() argument
1248 atomic64_add(dlen, &alg->stats.rng.generate_tlen); in crypto_stats_rng_generate()
Ddrbg.c1931 u8 *dst, unsigned int dlen) in drbg_kcapi_random() argument
1943 return drbg_generate_long(drbg, dst, dlen, addtl); in drbg_kcapi_random()