Home
last modified time | relevance | path

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

/crypto/
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 …]
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 …]
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 …]
Dscompress.c127 unsigned int dlen; in scomp_acomp_comp_decomp() local
133 if (req->dst && !req->dlen) in scomp_acomp_comp_decomp()
136 if (!req->dlen || req->dlen > SCOMP_SCRATCH_SIZE) in scomp_acomp_comp_decomp()
137 req->dlen = SCOMP_SCRATCH_SIZE; in scomp_acomp_comp_decomp()
139 dlen = req->dlen; in scomp_acomp_comp_decomp()
147 scratch->dst, &req->dlen, *ctx); in scomp_acomp_comp_decomp()
150 scratch->dst, &req->dlen, *ctx); in scomp_acomp_comp_decomp()
153 req->dst = sgl_alloc(req->dlen, GFP_ATOMIC, NULL); in scomp_acomp_comp_decomp()
158 } else if (req->dlen > dlen) { in scomp_acomp_comp_decomp()
162 scatterwalk_map_and_copy(scratch->dst, req->dst, 0, req->dlen, in scomp_acomp_comp_decomp()
Dcompress.c14 u8 *dst, unsigned int *dlen) in crypto_comp_compress() argument
19 dlen); in crypto_comp_compress()
25 u8 *dst, unsigned int *dlen) in crypto_comp_decompress() argument
30 dlen); in crypto_comp_decompress()
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.c351 u8 *rdata, unsigned int dlen) in cprng_get_random() argument
355 return get_prng_bytes(rdata, dlen, prng, 0); in cprng_get_random()
387 u8 *rdata, unsigned int dlen) in fips_cprng_get_random() argument
391 return get_prng_bytes(rdata, dlen, prng, 1); in fips_cprng_get_random()
Djitterentropy-kcapi.c140 u8 *rdata, unsigned int dlen) in jent_kcapi_random() argument
153 ret = jent_read_entropy(rng->entropy_collector, rdata, dlen); in jent_kcapi_random()
Dtestmgr.c3208 unsigned int dlen = COMP_BUF_SIZE; in test_comp() local
3215 ilen, output, &dlen); in test_comp()
3223 ilen = dlen; in test_comp()
3224 dlen = COMP_BUF_SIZE; in test_comp()
3226 ilen, decomp_output, &dlen); in test_comp()
3233 if (dlen != ctemplate[i].inlen) { in test_comp()
3236 dlen); in test_comp()
3245 hexdump(decomp_output, dlen); in test_comp()
3253 unsigned int dlen = COMP_BUF_SIZE; in test_comp() local
3259 ilen, decomp_output, &dlen); in test_comp()
[all …]
Dalgapi.c1245 void crypto_stats_rng_generate(struct crypto_alg *alg, unsigned int dlen, in crypto_stats_rng_generate() argument
1252 atomic64_add(dlen, &alg->stats.rng.generate_tlen); in crypto_stats_rng_generate()
Ddrbg.c1925 u8 *dst, unsigned int dlen) in drbg_kcapi_random() argument
1937 return drbg_generate_long(drbg, dst, dlen, addtl); in drbg_kcapi_random()