Home
last modified time | relevance | path

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

/crypto/
Dlz4.c53 static int __lz4_compress_crypto(const u8 *src, unsigned int slen, in __lz4_compress_crypto() argument
57 slen, *dlen, ctx); 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()
81 static int __lz4_decompress_crypto(const u8 *src, unsigned int slen, in __lz4_decompress_crypto() argument
84 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4_decompress_crypto()
94 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4_sdecompress() argument
97 return __lz4_decompress_crypto(src, slen, dst, dlen, NULL); in lz4_sdecompress()
[all …]
Dlz4hc.c52 static int __lz4hc_compress_crypto(const u8 *src, unsigned int slen, in __lz4hc_compress_crypto() argument
55 int out_len = LZ4_compress_HC(src, dst, slen, 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()
73 unsigned int slen, u8 *dst, in lz4hc_compress_crypto() argument
78 return __lz4hc_compress_crypto(src, slen, dst, dlen, in lz4hc_compress_crypto()
82 static int __lz4hc_decompress_crypto(const u8 *src, unsigned int slen, in __lz4hc_decompress_crypto() argument
85 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4hc_decompress_crypto()
95 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4hc_sdecompress() argument
98 return __lz4hc_decompress_crypto(src, slen, dst, dlen, NULL); in lz4hc_sdecompress()
[all …]
Dlzo-rle.c52 static int __lzorle_compress(const u8 *src, unsigned int slen, in __lzorle_compress() argument
58 err = lzorle1x_1_compress(src, slen, dst, &tmp_len, ctx); 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()
82 static int __lzorle_decompress(const u8 *src, unsigned int slen, in __lzorle_decompress() argument
88 err = lzo1x_decompress_safe(src, slen, dst, &tmp_len); in __lzorle_decompress()
98 unsigned int slen, u8 *dst, unsigned int *dlen) in lzorle_decompress() argument
100 return __lzorle_decompress(src, slen, dst, dlen); in lzorle_decompress()
[all …]
Dlzo.c52 static int __lzo_compress(const u8 *src, unsigned int slen, in __lzo_compress() argument
58 err = lzo1x_1_compress(src, slen, dst, &tmp_len, ctx); 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()
82 static int __lzo_decompress(const u8 *src, unsigned int slen, in __lzo_decompress() argument
88 err = lzo1x_decompress_safe(src, slen, dst, &tmp_len); in __lzo_decompress()
98 unsigned int slen, u8 *dst, unsigned int *dlen) in lzo_decompress() argument
100 return __lzo_decompress(src, slen, dst, dlen); in lzo_decompress()
[all …]
Dzstd.c150 static int __zstd_compress(const u8 *src, unsigned int slen, in __zstd_compress() argument
157 out_len = ZSTD_compressCCtx(zctx->cctx, dst, *dlen, src, slen, params); 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()
179 static int __zstd_decompress(const u8 *src, unsigned int slen, in __zstd_decompress() argument
185 out_len = ZSTD_decompressDCtx(zctx->dctx, dst, *dlen, src, slen); in __zstd_decompress()
193 unsigned int slen, u8 *dst, unsigned int *dlen) in zstd_decompress() argument
197 return __zstd_decompress(src, slen, dst, dlen, ctx); in zstd_decompress()
[all …]
D842.c66 const u8 *src, unsigned int slen, in crypto842_compress() argument
71 return sw842_compress(src, slen, dst, dlen, ctx->wmem); in crypto842_compress()
75 const u8 *src, unsigned int slen, in crypto842_scompress() argument
78 return sw842_compress(src, slen, dst, dlen, ctx); in crypto842_scompress()
82 const u8 *src, unsigned int slen, in crypto842_decompress() argument
85 return sw842_decompress(src, slen, dst, dlen); in crypto842_decompress()
89 const u8 *src, unsigned int slen, in crypto842_sdecompress() argument
92 return sw842_decompress(src, slen, dst, dlen); in crypto842_sdecompress()
Ddeflate.c176 static int __deflate_compress(const u8 *src, unsigned int slen, in __deflate_compress() argument
190 stream->avail_in = slen; 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()
220 static int __deflate_decompress(const u8 *src, unsigned int slen, in __deflate_decompress() argument
235 stream->avail_in = slen; in __deflate_decompress()
262 unsigned int slen, u8 *dst, unsigned int *dlen) in deflate_decompress() argument
266 return __deflate_decompress(src, slen, dst, dlen, dctx); in deflate_decompress()
[all …]
Dcompress.c16 const u8 *src, unsigned int slen, in crypto_compress() argument
19 return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst, in crypto_compress()
24 const u8 *src, unsigned int slen, in crypto_decompress() argument
27 return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst, in crypto_decompress()
Dansi_cprng.c349 const u8 *src, unsigned int slen, in cprng_get_random() argument
364 const u8 *seed, unsigned int slen) in cprng_reset() argument
370 if (slen < DEFAULT_PRNG_KSZ + DEFAULT_BLK_SZ) in cprng_reset()
373 if (slen >= (2 * DEFAULT_BLK_SZ + DEFAULT_PRNG_KSZ)) in cprng_reset()
385 const u8 *src, unsigned int slen, in fips_cprng_get_random() argument
394 const u8 *seed, unsigned int slen) in fips_cprng_reset() argument
402 if (slen < DEFAULT_PRNG_KSZ + DEFAULT_BLK_SZ) in fips_cprng_reset()
409 rc = cprng_reset(tfm, seed, slen); in fips_cprng_reset()
Drng.c31 int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) in crypto_rng_reset() argument
38 if (!seed && slen) { in crypto_rng_reset()
39 buf = kmalloc(slen, GFP_KERNEL); in crypto_rng_reset()
43 err = get_random_bytes_wait(buf, slen); in crypto_rng_reset()
49 err = crypto_rng_alg(tfm)->seed(tfm, seed, slen); in crypto_rng_reset()
Dcrypto_null.c28 unsigned int slen, u8 *dst, unsigned int *dlen) in null_compress() argument
30 if (slen > *dlen) in null_compress()
32 memcpy(dst, src, slen); in null_compress()
33 *dlen = slen; in null_compress()
Dscompress.c129 if (!req->src || !req->slen || req->slen > SCOMP_SCRATCH_SIZE) in scomp_acomp_comp_decomp()
141 scatterwalk_map_and_copy(scratch->src, req->src, 0, req->slen, 0); in scomp_acomp_comp_decomp()
143 ret = crypto_scomp_compress(scomp, scratch->src, req->slen, in scomp_acomp_comp_decomp()
146 ret = crypto_scomp_decompress(scomp, scratch->src, req->slen, in scomp_acomp_comp_decomp()
Djitterentropy-kcapi.c144 const u8 *src, unsigned int slen, in jent_kcapi_random() argument
158 const u8 *seed, unsigned int slen) in jent_kcapi_reset() argument
Ddrbg.c1930 const u8 *src, unsigned int slen, in drbg_kcapi_random() argument
1937 if (slen) { in drbg_kcapi_random()
1939 drbg_string_fill(&string, src, slen); in drbg_kcapi_random()
1950 const u8 *seed, unsigned int slen) in drbg_kcapi_seed() argument
1961 if (0 < slen) { in drbg_kcapi_seed()
1962 drbg_string_fill(&string, seed, slen); in drbg_kcapi_seed()
Dalgapi.c1153 void crypto_stats_compress(unsigned int slen, int ret, struct crypto_alg *alg) in crypto_stats_compress() argument
1159 atomic64_add(slen, &alg->stats.compress.compress_tlen); in crypto_stats_compress()
1165 void crypto_stats_decompress(unsigned int slen, int ret, struct crypto_alg *alg) in crypto_stats_decompress() argument
1171 atomic64_add(slen, &alg->stats.compress.decompress_tlen); in crypto_stats_decompress()