Home
last modified time | relevance | path

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

123456

/linux-6.3-rc2/drivers/crypto/nx/
A Dnx-842.c95 p->in += slen; in update_param()
96 p->iremain -= slen; in update_param()
185 slen = min(slen, BOUNCE_BUFFER_SIZE); in compress()
187 memset(ctx->sbounce + slen, 0, adj_slen - slen); in compress()
190 slen = adj_slen; in compress()
240 slen = p->iremain; in compress()
265 p.iremain = slen; in nx842_crypto_compress()
373 memset(ctx->sbounce + slen, 0, adj_slen - slen); in decompress()
377 slen = adj_slen; in decompress()
417 slen -= spadding; in decompress()
[all …]
/linux-6.3-rc2/drivers/crypto/allwinner/sun8i-ce/
A Dsun8i-ce-prng.c31 ctx->slen = 0; in sun8i_ce_prng_exit()
35 unsigned int slen) in sun8i_ce_prng_seed() argument
39 if (ctx->seed && ctx->slen != slen) { in sun8i_ce_prng_seed()
41 ctx->slen = 0; in sun8i_ce_prng_seed()
45 ctx->seed = kmalloc(slen, GFP_KERNEL | GFP_DMA); in sun8i_ce_prng_seed()
49 memcpy(ctx->seed, seed, slen); in sun8i_ce_prng_seed()
50 ctx->slen = slen; in sun8i_ce_prng_seed()
74 if (ctx->slen == 0) { in sun8i_ce_prng_generate()
80 todo = dlen + ctx->slen + PRNG_DATA_SIZE * 2; in sun8i_ce_prng_generate()
90 slen, dlen, todo, todo / PRNG_DATA_SIZE); in sun8i_ce_prng_generate()
[all …]
/linux-6.3-rc2/crypto/
A 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
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()
101 unsigned int slen, u8 *dst, in lz4_decompress_crypto() argument
[all …]
A 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()
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()
102 unsigned int slen, u8 *dst, in lz4hc_decompress_crypto() argument
[all …]
A 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
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()
104 unsigned int slen, u8 *dst, unsigned int *dlen, in lzorle_sdecompress() argument
[all …]
A 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
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()
104 unsigned int slen, u8 *dst, unsigned int *dlen, in lzo_sdecompress() argument
[all …]
A Dzstd.c150 static int __zstd_compress(const u8 *src, unsigned int slen, in __zstd_compress() argument
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_decompress_dctx(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()
201 unsigned int slen, u8 *dst, unsigned int *dlen, in zstd_sdecompress() argument
[all …]
A 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()
A 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()
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()
270 unsigned int slen, u8 *dst, unsigned int *dlen, in deflate_sdecompress() argument
[all …]
A Dcompress.c13 const u8 *src, unsigned int slen, in crypto_comp_compress() argument
18 return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst, in crypto_comp_compress()
24 const u8 *src, unsigned int slen, in crypto_comp_decompress() argument
29 return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst, in crypto_comp_decompress()
A Dansi_cprng.c350 const u8 *src, unsigned int slen, in cprng_get_random() argument
365 const u8 *seed, unsigned int slen) in cprng_reset() argument
371 if (slen < DEFAULT_PRNG_KSZ + DEFAULT_BLK_SZ) in cprng_reset()
374 if (slen >= (2 * DEFAULT_BLK_SZ + DEFAULT_PRNG_KSZ)) in cprng_reset()
386 const u8 *src, unsigned int slen, in fips_cprng_get_random() argument
395 const u8 *seed, unsigned int slen) in fips_cprng_reset() argument
403 if (slen < DEFAULT_PRNG_KSZ + DEFAULT_BLK_SZ) in fips_cprng_reset()
410 rc = cprng_reset(tfm, seed, slen); in fips_cprng_reset()
/linux-6.3-rc2/drivers/crypto/allwinner/sun8i-ss/
A Dsun8i-ss-prng.c20 unsigned int slen) in sun8i_ss_prng_seed() argument
24 if (ctx->seed && ctx->slen != slen) { in sun8i_ss_prng_seed()
26 ctx->slen = 0; in sun8i_ss_prng_seed()
30 ctx->seed = kmalloc(slen, GFP_KERNEL); in sun8i_ss_prng_seed()
34 memcpy(ctx->seed, seed, slen); in sun8i_ss_prng_seed()
35 ctx->slen = slen; in sun8i_ss_prng_seed()
54 ctx->slen = 0; in sun8i_ss_prng_exit()
58 unsigned int slen, u8 *dst, unsigned int dlen) in sun8i_ss_prng_generate() argument
75 if (ctx->slen == 0) { in sun8i_ss_prng_generate()
166 dma_unmap_single(ss->dev, dma_iv, ctx->slen, DMA_TO_DEVICE); in sun8i_ss_prng_generate()
[all …]
/linux-6.3-rc2/drivers/crypto/cavium/zip/
A Dzip_crypto.c144 zip_ops->input_len = slen; in zip_compress()
146 memcpy(zip_ops->input, src, slen); in zip_compress()
179 memcpy(zip_ops->input, src, slen); in zip_decompress()
183 zip_ops->input[slen++] = 0; in zip_decompress()
185 zip_ops->input_len = slen; in zip_decompress()
221 const u8 *src, unsigned int slen, in zip_comp_compress() argument
226 return zip_compress(src, slen, dst, dlen, zip_ctx); in zip_comp_compress()
230 const u8 *src, unsigned int slen, in zip_comp_decompress() argument
286 const u8 *src, unsigned int slen, in zip_scomp_compress() argument
291 return zip_compress(src, slen, dst, dlen, zip_ctx); in zip_scomp_compress()
[all …]
A Dzip_crypto.h64 const u8 *src, unsigned int slen,
67 const u8 *src, unsigned int slen,
74 const u8 *src, unsigned int slen,
77 const u8 *src, unsigned int slen,
/linux-6.3-rc2/include/crypto/
A Dacompress.h31 unsigned int slen; member
241 unsigned int slen, in acomp_request_set_params() argument
246 req->slen = slen; in acomp_request_set_params()
266 unsigned int slen = req->slen; in crypto_acomp_compress() local
271 crypto_stats_compress(slen, ret, alg); in crypto_acomp_compress()
288 unsigned int slen = req->slen; in crypto_acomp_decompress() local
293 crypto_stats_decompress(slen, ret, alg); in crypto_acomp_decompress()
A Drng.h43 const u8 *src, unsigned int slen,
45 int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
137 const u8 *src, unsigned int slen, in crypto_rng_generate() argument
144 ret = crypto_rng_alg(tfm)->generate(tfm, src, slen, dst, dlen); in crypto_rng_generate()
184 unsigned int slen);
/linux-6.3-rc2/include/crypto/internal/
A Dscompress.h33 unsigned int slen, u8 *dst, unsigned int *dlen,
36 unsigned int slen, u8 *dst, unsigned int *dlen,
78 const u8 *src, unsigned int slen, in crypto_scomp_compress() argument
81 return crypto_scomp_alg(tfm)->compress(tfm, src, slen, dst, dlen, ctx); in crypto_scomp_compress()
85 const u8 *src, unsigned int slen, in crypto_scomp_decompress() argument
89 return crypto_scomp_alg(tfm)->decompress(tfm, src, slen, dst, dlen, in crypto_scomp_decompress()
/linux-6.3-rc2/drivers/crypto/qat/qat_common/
A Dqat_comp_req.h11 static inline void qat_comp_create_req(void *ctx, void *req, u64 src, u32 slen, in qat_comp_create_req() argument
20 fw_req->comn_mid.src_length = slen; in qat_comp_create_req()
24 req_pars->comp_len = slen; in qat_comp_create_req()
39 u64 src, u32 slen, in qat_comp_create_compression_req() argument
43 qat_comp_create_req(ctx, req, src, slen, dst, dlen, opaque); in qat_comp_create_compression_req()
47 u64 src, u32 slen, in qat_comp_create_decompression_req() argument
54 qat_comp_create_req(fw_tmpl, req, src, slen, dst, dlen, opaque); in qat_comp_create_decompression_req()
/linux-6.3-rc2/net/ipv4/
A Dfib_trie.c440 if (n && (tn->slen < n->slen)) in put_child()
441 tn->slen = n->slen; in put_child()
728 if (!n || (n->slen <= slen)) in update_suffix()
732 stride <<= (n->slen - slen); in update_suffix()
733 slen = n->slen; in update_suffix()
741 tn->slen = slen; in update_suffix()
928 while (tn->slen < slen) { in node_push_suffix()
929 tn->slen = slen; in node_push_suffix()
1663 if (tp->slen == l->slen) in fib_remove_alias()
2016 n->slen = slen; in fib_table_flush_external()
[all …]
/linux-6.3-rc2/drivers/isdn/hardware/mISDN/
A Disdnhdlc.c159 *count = slen; in isdnhdlc_decode()
161 while (slen > 0) { in isdnhdlc_decode()
168 slen--; in isdnhdlc_decode()
276 *count -= slen; in isdnhdlc_decode()
318 *count -= slen; in isdnhdlc_decode()
350 *count = slen; in isdnhdlc_encode()
359 slen--; in isdnhdlc_encode()
360 if (slen == 0) in isdnhdlc_encode()
390 if (slen == 0) { in isdnhdlc_encode()
428 if (slen == 0) { in isdnhdlc_encode()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dcls_redirect.c97 socklen_t slen = sizeof(ss); in set_up_conn() local
104 if (CHECK_FAIL(getsockname(*server, sa, &slen))) in set_up_conn()
107 *conn = connect_to_server(sa, slen, type); in set_up_conn()
114 slen = sizeof(ss); in set_up_conn()
115 if (CHECK_FAIL(getsockname(*conn, sa, &slen))) in set_up_conn()
121 slen = sizeof(ss); in set_up_conn()
122 if (CHECK_FAIL(getpeername(*conn, sa, &slen))) in set_up_conn()
374 socklen_t slen; in test_cls_redirect_common() local
382 slen = prepare_addr(&ss, families[i]); in test_cls_redirect_common()
383 if (CHECK_FAIL(!slen)) in test_cls_redirect_common()
[all …]
/linux-6.3-rc2/net/dns_resolver/
A Ddns_key.c245 int slen, dlen, ret = 0; in dns_resolver_cmp() local
256 slen = strlen(src); in dns_resolver_cmp()
258 if (slen <= 0 || dlen <= 0) in dns_resolver_cmp()
260 if (src[slen - 1] == '.') in dns_resolver_cmp()
261 slen--; in dns_resolver_cmp()
264 if (slen != dlen || strncasecmp(src, dsp, slen) != 0) in dns_resolver_cmp()
/linux-6.3-rc2/drivers/crypto/
A Dexynos-rng.c98 const u8 *seed, unsigned int slen) in exynos_rng_set_seed() argument
104 slen = ALIGN_DOWN(slen, 4); in exynos_rng_set_seed()
106 if (slen < EXYNOS_RNG_SEED_SIZE) in exynos_rng_set_seed()
109 for (i = 0; i < slen ; i += 4) { in exynos_rng_set_seed()
195 const u8 *src, unsigned int slen, in exynos_rng_generate() argument
226 unsigned int slen) in exynos_rng_seed() argument
237 ret = exynos_rng_set_seed(ctx->rng, seed, slen); in exynos_rng_seed()
/linux-6.3-rc2/scripts/basic/
A Dfixdep.c170 static void use_config(const char *m, int slen) in use_config() argument
172 if (in_hashtable(m, slen, config_hashtab)) in use_config()
176 printf(" $(wildcard include/config/%.*s) \\\n", slen, m); in use_config()
180 static int str_ends_with(const char *s, int slen, const char *sub) in str_ends_with() argument
184 if (sublen > slen) in str_ends_with()
187 return !memcmp(s + slen - sublen, sub, sublen); in str_ends_with()
/linux-6.3-rc2/net/ipv6/
A Dseg6.c161 u8 slen; in seg6_genl_sethmac() local
171 slen = nla_get_u8(info->attrs[SEG6_ATTR_SECRETLEN]); in seg6_genl_sethmac()
177 if (slen > SEG6_HMAC_SECRET_LEN) in seg6_genl_sethmac()
183 if (!slen) { in seg6_genl_sethmac()
194 if (slen > nla_len(info->attrs[SEG6_ATTR_SECRET])) { in seg6_genl_sethmac()
213 memcpy(hinfo->secret, secret, slen); in seg6_genl_sethmac()
214 hinfo->slen = slen; in seg6_genl_sethmac()
305 nla_put_u8(msg, SEG6_ATTR_SECRETLEN, hinfo->slen) || in __seg6_hmac_fill_info()
306 nla_put(msg, SEG6_ATTR_SECRET, hinfo->slen, hinfo->secret) || in __seg6_hmac_fill_info()

Completed in 37 milliseconds

123456