Home
last modified time | relevance | path

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

12

/linux-4.19.296/crypto/
Dlz4hc.c65 static int __lz4hc_compress_crypto(const u8 *src, unsigned int slen, in __lz4hc_compress_crypto() argument
68 int out_len = LZ4_compress_HC(src, dst, slen, in __lz4hc_compress_crypto()
79 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4hc_scompress() argument
82 return __lz4hc_compress_crypto(src, slen, dst, dlen, ctx); in lz4hc_scompress()
86 unsigned int slen, u8 *dst, in lz4hc_compress_crypto() argument
91 return __lz4hc_compress_crypto(src, slen, dst, dlen, in lz4hc_compress_crypto()
95 static int __lz4hc_decompress_crypto(const u8 *src, unsigned int slen, in __lz4hc_decompress_crypto() argument
98 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4hc_decompress_crypto()
108 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4hc_sdecompress() argument
111 return __lz4hc_decompress_crypto(src, slen, dst, dlen, NULL); in lz4hc_sdecompress()
[all …]
Dlzo.c65 static int __lzo_compress(const u8 *src, unsigned int slen, in __lzo_compress() argument
71 err = lzo1x_1_compress(src, slen, dst, &tmp_len, ctx); in __lzo_compress()
81 unsigned int slen, u8 *dst, unsigned int *dlen) in lzo_compress() argument
85 return __lzo_compress(src, slen, dst, dlen, ctx->lzo_comp_mem); in lzo_compress()
89 unsigned int slen, u8 *dst, unsigned int *dlen, in lzo_scompress() argument
92 return __lzo_compress(src, slen, dst, dlen, ctx); in lzo_scompress()
95 static int __lzo_decompress(const u8 *src, unsigned int slen, in __lzo_decompress() argument
101 err = lzo1x_decompress_safe(src, slen, dst, &tmp_len); in __lzo_decompress()
111 unsigned int slen, u8 *dst, unsigned int *dlen) in lzo_decompress() argument
113 return __lzo_decompress(src, slen, dst, dlen); in lzo_decompress()
[all …]
Dlz4.c66 static int __lz4_compress_crypto(const u8 *src, unsigned int slen, in __lz4_compress_crypto() argument
70 slen, *dlen, ctx); in __lz4_compress_crypto()
80 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4_scompress() argument
83 return __lz4_compress_crypto(src, slen, dst, dlen, ctx); in lz4_scompress()
87 unsigned int slen, u8 *dst, unsigned int *dlen) in lz4_compress_crypto() argument
91 return __lz4_compress_crypto(src, slen, dst, dlen, ctx->lz4_comp_mem); in lz4_compress_crypto()
94 static int __lz4_decompress_crypto(const u8 *src, unsigned int slen, in __lz4_decompress_crypto() argument
97 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4_decompress_crypto()
107 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4_sdecompress() argument
110 return __lz4_decompress_crypto(src, slen, dst, dlen, NULL); in lz4_sdecompress()
[all …]
D842.c75 const u8 *src, unsigned int slen, in crypto842_compress() argument
80 return sw842_compress(src, slen, dst, dlen, ctx->wmem); in crypto842_compress()
84 const u8 *src, unsigned int slen, in crypto842_scompress() argument
87 return sw842_compress(src, slen, dst, dlen, ctx); in crypto842_scompress()
91 const u8 *src, unsigned int slen, in crypto842_decompress() argument
94 return sw842_decompress(src, slen, dst, dlen); in crypto842_decompress()
98 const u8 *src, unsigned int slen, in crypto842_sdecompress() argument
101 return sw842_decompress(src, slen, dst, dlen); in crypto842_sdecompress()
Dzstd.c158 static int __zstd_compress(const u8 *src, unsigned int slen, in __zstd_compress() argument
165 out_len = ZSTD_compressCCtx(zctx->cctx, dst, *dlen, src, slen, params); in __zstd_compress()
173 unsigned int slen, u8 *dst, unsigned int *dlen) in zstd_compress() argument
177 return __zstd_compress(src, slen, dst, dlen, ctx); in zstd_compress()
181 unsigned int slen, u8 *dst, unsigned int *dlen, in zstd_scompress() argument
184 return __zstd_compress(src, slen, dst, dlen, ctx); in zstd_scompress()
187 static int __zstd_decompress(const u8 *src, unsigned int slen, in __zstd_decompress() argument
193 out_len = ZSTD_decompressDCtx(zctx->dctx, dst, *dlen, src, slen); in __zstd_decompress()
201 unsigned int slen, u8 *dst, unsigned int *dlen) in zstd_decompress() argument
205 return __zstd_decompress(src, slen, dst, dlen, ctx); in zstd_decompress()
[all …]
Ddeflate.c180 static int __deflate_compress(const u8 *src, unsigned int slen, in __deflate_compress() argument
194 stream->avail_in = slen; in __deflate_compress()
210 unsigned int slen, u8 *dst, unsigned int *dlen) in deflate_compress() argument
214 return __deflate_compress(src, slen, dst, dlen, dctx); in deflate_compress()
218 unsigned int slen, u8 *dst, unsigned int *dlen, in deflate_scompress() argument
221 return __deflate_compress(src, slen, dst, dlen, ctx); in deflate_scompress()
224 static int __deflate_decompress(const u8 *src, unsigned int slen, in __deflate_decompress() argument
239 stream->avail_in = slen; in __deflate_decompress()
266 unsigned int slen, u8 *dst, unsigned int *dlen) in deflate_decompress() argument
270 return __deflate_decompress(src, slen, dst, dlen, dctx); in deflate_decompress()
[all …]
Dcompress.c21 const u8 *src, unsigned int slen, in crypto_compress() argument
24 return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst, in crypto_compress()
29 const u8 *src, unsigned int slen, in crypto_decompress() argument
32 return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst, in crypto_decompress()
Dansi_cprng.c355 const u8 *src, unsigned int slen, in cprng_get_random() argument
370 const u8 *seed, unsigned int slen) in cprng_reset() argument
376 if (slen < DEFAULT_PRNG_KSZ + DEFAULT_BLK_SZ) in cprng_reset()
379 if (slen >= (2 * DEFAULT_BLK_SZ + DEFAULT_PRNG_KSZ)) in cprng_reset()
391 const u8 *src, unsigned int slen, in fips_cprng_get_random() argument
400 const u8 *seed, unsigned int slen) in fips_cprng_reset() argument
408 if (slen < DEFAULT_PRNG_KSZ + DEFAULT_BLK_SZ) in fips_cprng_reset()
415 rc = cprng_reset(tfm, seed, slen); in fips_cprng_reset()
Drng.c36 int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) in crypto_rng_reset() argument
41 if (!seed && slen) { in crypto_rng_reset()
42 buf = kmalloc(slen, GFP_KERNEL); in crypto_rng_reset()
46 err = get_random_bytes_wait(buf, slen); in crypto_rng_reset()
52 err = crypto_rng_alg(tfm)->seed(tfm, seed, slen); in crypto_rng_reset()
Dcrypto_null.c33 unsigned int slen, u8 *dst, unsigned int *dlen) in null_compress() argument
35 if (slen > *dlen) in null_compress()
37 memcpy(dst, src, slen); in null_compress()
38 *dlen = slen; in null_compress()
Dscompress.c154 if (!req->src || !req->slen || req->slen > SCOMP_SCRATCH_SIZE) { in scomp_acomp_comp_decomp()
167 scatterwalk_map_and_copy(scratch_src, req->src, 0, req->slen, 0); in scomp_acomp_comp_decomp()
169 ret = crypto_scomp_compress(scomp, scratch_src, req->slen, in scomp_acomp_comp_decomp()
172 ret = crypto_scomp_decompress(scomp, scratch_src, req->slen, in scomp_acomp_comp_decomp()
Djitterentropy-kcapi.c149 const u8 *src, unsigned int slen, in jent_kcapi_random() argument
163 const u8 *seed, unsigned int slen) in jent_kcapi_reset() argument
/linux-4.19.296/include/crypto/internal/
Dscompress.h37 unsigned int slen, u8 *dst, unsigned int *dlen,
40 unsigned int slen, u8 *dst, unsigned int *dlen,
82 const u8 *src, unsigned int slen, in crypto_scomp_compress() argument
85 return crypto_scomp_alg(tfm)->compress(tfm, src, slen, dst, dlen, ctx); in crypto_scomp_compress()
89 const u8 *src, unsigned int slen, in crypto_scomp_decompress() argument
93 return crypto_scomp_alg(tfm)->decompress(tfm, src, slen, dst, dlen, in crypto_scomp_decompress()
/linux-4.19.296/include/crypto/
Drng.h48 const u8 *src, unsigned int slen,
50 int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
142 const u8 *src, unsigned int slen, in crypto_rng_generate() argument
145 return crypto_rng_alg(tfm)->generate(tfm, src, slen, dst, dlen); in crypto_rng_generate()
183 unsigned int slen);
Dacompress.h35 unsigned int slen; member
227 unsigned int slen, in acomp_request_set_params() argument
232 req->slen = slen; in acomp_request_set_params()
/linux-4.19.296/drivers/isdn/i4l/
Disdnhdlc.c131 int isdnhdlc_decode(struct isdnhdlc_vars *hdlc, const u8 *src, int slen, in isdnhdlc_decode() argument
172 *count = slen; in isdnhdlc_decode()
174 while (slen > 0) { in isdnhdlc_decode()
181 slen--; in isdnhdlc_decode()
289 *count -= slen; in isdnhdlc_decode()
331 *count -= slen; in isdnhdlc_decode()
354 int isdnhdlc_encode(struct isdnhdlc_vars *hdlc, const u8 *src, u16 slen, in isdnhdlc_encode() argument
363 *count = slen; in isdnhdlc_encode()
366 if ((slen == 1) && (hdlc->state == HDLC_SEND_FAST_FLAG)) in isdnhdlc_encode()
370 if (slen && !hdlc->do_closing) { in isdnhdlc_encode()
[all …]
/linux-4.19.296/include/linux/isdn/
Dhdlc.h75 int slen, int *count, u8 *dst, int dsize);
80 u16 slen, int *count, u8 *dst, int dsize);
/linux-4.19.296/fs/kernfs/
Dsymlink.c100 int slen = strlen(kn->name); in kernfs_get_target_path() local
102 len -= slen; in kernfs_get_target_path()
103 memcpy(s + len, kn->name, slen); in kernfs_get_target_path()
/linux-4.19.296/fs/isofs/
Drock.c450 int slen; in parse_rock_ridge_inode_internal() local
453 slen = rr->len - 5; in parse_rock_ridge_inode_internal()
456 while (slen > 1) { in parse_rock_ridge_inode_internal()
477 slen -= slp->len + 2; in parse_rock_ridge_inode_internal()
482 if (slen < 2) { in parse_rock_ridge_inode_internal()
605 int slen; in get_symlink_chunk() local
609 slen = rr->len - 5; in get_symlink_chunk()
611 while (slen > 1) { in get_symlink_chunk()
641 slen -= slp->len + 2; in get_symlink_chunk()
645 if (slen < 2) { in get_symlink_chunk()
/linux-4.19.296/fs/udf/
Dunicode.c379 int udf_get_filename(struct super_block *sb, const uint8_t *sname, int slen, in udf_get_filename() argument
384 if (!slen) in udf_get_filename()
390 ret = udf_name_from_CS0(sb, dname, dlen, sname, slen, 1); in udf_get_filename()
397 int udf_put_filename(struct super_block *sb, const uint8_t *sname, int slen, in udf_put_filename() argument
400 return udf_name_to_CS0(sb, dname, dlen, sname, slen); in udf_put_filename()
/linux-4.19.296/include/linux/
Dcrypto.h367 unsigned int slen, u8 *dst, unsigned int *dlen);
369 unsigned int slen, u8 *dst, unsigned int *dlen);
581 const u8 *src, unsigned int slen,
584 const u8 *src, unsigned int slen,
1653 const u8 *src, unsigned int slen, in crypto_comp_compress() argument
1657 src, slen, dst, dlen); in crypto_comp_compress()
1661 const u8 *src, unsigned int slen, in crypto_comp_decompress() argument
1665 src, slen, dst, dlen); in crypto_comp_decompress()
/linux-4.19.296/lib/
Dstring_helpers.c548 size_t slen, dlen; in kstrdup_quotable() local
555 slen = strlen(src); in kstrdup_quotable()
557 dlen = string_escape_mem(src, slen, NULL, 0, flags, esc); in kstrdup_quotable()
562 WARN_ON(string_escape_mem(src, slen, dst, dlen, flags, esc) != dlen); in kstrdup_quotable()
/linux-4.19.296/drivers/isdn/capi/
Dcapiutil.c656 int slen = 29 + 3 - level; in protocol_message_2_pars() local
667 cdb = bufprint(cdb, "%-*s = 0x%x\n", slen, NAME, *(u8 *) (cmsg->m + cmsg->l)); in protocol_message_2_pars()
671 cdb = bufprint(cdb, "%-*s = 0x%x\n", slen, NAME, *(u16 *) (cmsg->m + cmsg->l)); in protocol_message_2_pars()
675 cdb = bufprint(cdb, "%-*s = 0x%lx\n", slen, NAME, *(u32 *) (cmsg->m + cmsg->l)); in protocol_message_2_pars()
679 cdb = bufprint(cdb, "%-*s = ", slen, NAME); in protocol_message_2_pars()
695 cdb = bufprint(cdb, "%-*s = default\n", slen, NAME); in protocol_message_2_pars()
701 cdb = bufprint(cdb, "%-*s\n", slen, name); in protocol_message_2_pars()
/linux-4.19.296/include/linux/netfilter/
Dnf_conntrack_sip.h68 unsigned int slen; member
81 .slen = (__search) ? sizeof(__search) - 1 : 0, \
/linux-4.19.296/fs/overlayfs/
Dinode.c417 size_t slen = strnlen(s, len) + 1; in ovl_listxattr() local
420 if (WARN_ON(slen > len)) in ovl_listxattr()
423 len -= slen; in ovl_listxattr()
425 res -= slen; in ovl_listxattr()
426 memmove(s, s + slen, len); in ovl_listxattr()
428 s += slen; in ovl_listxattr()

12