Home
last modified time | relevance | path

Searched refs:dst_len (Results 1 – 25 of 96) sorted by relevance

1234

/linux-6.15/crypto/
H A Drsa-pkcs1pad.c87 len = req_ctx->child_req.dst_len; in pkcs1pad_encrypt_complete()
107 req->dst_len = ctx->key_size; in pkcs1pad_encrypt_complete()
142 req->dst_len = ctx->key_size; in pkcs1pad_encrypt()
180 unsigned int dst_len; in pkcs1pad_decrypt_complete() local
188 dst_len = req_ctx->child_req.dst_len; in pkcs1pad_decrypt_complete()
189 if (dst_len < ctx->key_size - 1) in pkcs1pad_decrypt_complete()
193 if (dst_len == ctx->key_size) { in pkcs1pad_decrypt_complete()
198 dst_len--; in pkcs1pad_decrypt_complete()
208 if (pos < 9 || pos == dst_len) in pkcs1pad_decrypt_complete()
214 if (req->dst_len < dst_len - pos) in pkcs1pad_decrypt_complete()
[all …]
H A Drsassa-pkcs1.c228 unsigned int dst_len; in rsassa_pkcs1_verify() local
261 dst_len = child_req->dst_len; in rsassa_pkcs1_verify()
262 if (dst_len < ctx->key_size - 1) in rsassa_pkcs1_verify()
265 if (dst_len == ctx->key_size) { in rsassa_pkcs1_verify()
270 dst_len--; in rsassa_pkcs1_verify()
277 for (pos = 1; pos < dst_len; pos++) in rsassa_pkcs1_verify()
281 if (pos < 9 || pos == dst_len || out_buf[pos] != 0x00) in rsassa_pkcs1_verify()
285 if (hash_prefix->size > dst_len - pos) in rsassa_pkcs1_verify()
292 if (dlen != dst_len - pos) in rsassa_pkcs1_verify()
H A Djitterentropy-kcapi.c172 int jent_read_random_block(void *hash_state, char *dst, unsigned int dst_len) in jent_read_random_block() argument
182 if (!ret && dst_len) in jent_read_random_block()
183 memcpy(dst, jent_block, dst_len); in jent_read_random_block()
/linux-6.15/lib/
H A Ddecompress_unlzo.c105 u32 src_len, dst_len; in unlzo() local
181 dst_len = get_unaligned_be32(in_buf); in unlzo()
186 if (dst_len == 0) { in unlzo()
192 if (dst_len > LZO_BLOCK_SIZE) { in unlzo()
211 if (src_len <= 0 || src_len > dst_len) { in unlzo()
226 tmp = dst_len; in unlzo()
231 if (unlikely(dst_len == src_len)) in unlzo()
237 if (r != LZO_E_OK || dst_len != tmp) { in unlzo()
243 if (flush && flush(out_buf, dst_len) != dst_len) in unlzo()
246 out_buf += dst_len; in unlzo()
/linux-6.15/fs/bcachefs/
H A Dcompress.c201 src_len, dst_len, dst_len); in __bio_uncompress()
202 if (ret2 != dst_len) in __bio_uncompress()
210 .avail_out = dst_len, in __bio_uncompress()
238 dst_data, dst_len, in __bio_uncompress()
243 if (ret2 != dst_len) in __bio_uncompress()
350 &len, dst_len, in attempt_compress()
359 src_len, dst_len, in attempt_compress()
481 *dst_len = ret; in __bio_compress()
513 pad = round_up(*dst_len, block_bytes(c)) - *dst_len; in __bio_compress()
516 *dst_len += pad; in __bio_compress()
[all …]
/linux-6.15/include/linux/
H A Dlzo.h25 unsigned char *dst, size_t *dst_len, void *wrkmem);
29 unsigned char *dst, size_t *dst_len, void *wrkmem);
33 unsigned char *dst, size_t *dst_len, void *wrkmem);
37 unsigned char *dst, size_t *dst_len, void *wrkmem);
41 unsigned char *dst, size_t *dst_len);
/linux-6.15/net/smc/
H A Dsmc_tx.c398 if (src_len_sum == dst_len) in smcr_tx_rdma_writes()
411 dst_len = len - dst_len; /* remainder */ in smcr_tx_rdma_writes()
412 dst_len_sum += dst_len; in smcr_tx_rdma_writes()
442 if (src_len_sum == dst_len) in smcd_tx_rdma_writes()
452 dst_len = len - dst_len; /* remainder */ in smcd_tx_rdma_writes()
453 dst_len_sum += dst_len; in smcd_tx_rdma_writes()
506 dst_len = min_t(size_t, in smc_tx_rdma_writes()
513 dst_len = len; in smc_tx_rdma_writes()
518 src_len = dst_len; in smc_tx_rdma_writes()
526 dst_off, dst_len); in smc_tx_rdma_writes()
[all …]
/linux-6.15/net/ipv4/
H A Dfib_rules.c37 u8 dst_len; member
55 if (r->dst_len || r->src_len || r->dscp) in fib4_rule_matchall()
326 if (frh->dst_len) in fib4_rule_configure()
342 rule4->dst_len = frh->dst_len; in fib4_rule_configure()
343 rule4->dstmask = inet_make_mask(rule4->dst_len); in fib4_rule_configure()
383 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare()
415 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DST]))) in fib4_rule_compare()
426 frh->dst_len = rule4->dst_len; in fib4_rule_fill()
440 if ((rule4->dst_len && in fib4_rule_fill()
/linux-6.15/drivers/block/zram/
H A Dbackend_lz4.c78 req->dst_len, params->level, in lz4_compress()
87 req->dst_len, params->level); in lz4_compress()
91 req->dst_len = ret; in lz4_compress()
103 req->dst_len); in lz4_decompress()
112 req->dst_len); in lz4_decompress()
H A Dbackend_lz4hc.c78 req->dst_len, params->level, in lz4hc_compress()
88 req->src_len, req->dst_len); in lz4hc_compress()
92 req->dst_len = ret; in lz4hc_compress()
104 req->dst_len); in lz4hc_decompress()
113 req->dst_len); in lz4hc_decompress()
H A Dbackend_842.c35 unsigned int dlen = req->dst_len; in compress_842()
41 req->dst_len = dlen; in compress_842()
48 unsigned int dlen = req->dst_len; in decompress_842()
H A Dbackend_zstd.c177 ret = zstd_compress_cctx(zctx->cctx, req->dst, req->dst_len, in zstd_compress()
181 req->dst_len, req->src, in zstd_compress()
186 req->dst_len = ret; in zstd_compress()
198 ret = zstd_decompress_dctx(zctx->dctx, req->dst, req->dst_len, in zstd_decompress()
202 req->dst_len, req->src, in zstd_decompress()
H A Dzcomp.c139 const void *src, unsigned int *dst_len) in zcomp_compress() argument
145 .dst_len = 2 * PAGE_SIZE, in zcomp_compress()
152 *dst_len = req.dst_len; in zcomp_compress()
163 .dst_len = PAGE_SIZE, in zcomp_decompress()
H A Dbackend_deflate.c102 deflate->avail_out = req->dst_len; in deflate_compress()
108 req->dst_len = deflate->total_out; in deflate_compress()
129 inflate->avail_out = req->dst_len; in deflate_decompress()
H A Dbackend_lzo.c37 &req->dst_len, ctx->context); in lzo_compress()
47 req->dst, &req->dst_len); in lzo_decompress()
H A Dbackend_lzorle.c37 &req->dst_len, ctx->context); in lzorle_compress()
47 req->dst, &req->dst_len); in lzorle_decompress()
H A Dzcomp.h47 size_t dst_len; member
85 const void *src, unsigned int *dst_len);
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dmp.c108 static void mlx5_lag_fib_set(struct lag_mp *mp, struct fib_info *fi, u32 dst, int dst_len) in mlx5_lag_fib_set() argument
113 mp->fib.dst_len = dst_len; in mlx5_lag_fib_set()
177 (mp->fib.dst != fen_info->dst || mp->fib.dst_len != fen_info->dst_len) && in mlx5_lag_fib_route_event()
186 if (mp->fib.dst == fen_info->dst && mp->fib.dst_len == fen_info->dst_len) in mlx5_lag_fib_route_event()
205 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event()
220 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event()
/linux-6.15/include/crypto/
H A Dakcipher.h35 unsigned int dst_len; member
240 unsigned int dst_len) in akcipher_request_set_crypt() argument
245 req->dst_len = dst_len; in akcipher_request_set_crypt()
/linux-6.15/lib/crypto/
H A Dchacha20poly1305.c129 size_t dst_len; in __chacha20poly1305_decrypt() local
147 dst_len = src_len - POLY1305_DIGEST_SIZE; in __chacha20poly1305_decrypt()
148 poly1305_update(&poly1305_state, src, dst_len); in __chacha20poly1305_decrypt()
149 if (dst_len & 0xf) in __chacha20poly1305_decrypt()
150 poly1305_update(&poly1305_state, pad0, 0x10 - (dst_len & 0xf)); in __chacha20poly1305_decrypt()
153 b.lens[1] = cpu_to_le64(dst_len); in __chacha20poly1305_decrypt()
158 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt()
160 chacha20_crypt(chacha_state, dst, src, dst_len); in __chacha20poly1305_decrypt()
/linux-6.15/drivers/crypto/virtio/
H A Dvirtio_crypto_skcipher_algs.c335 u64 dst_len; in __virtio_crypto_skcipher_do_req() local
385 dst_len = virtio_crypto_alg_sg_nents_length(req->dst); in __virtio_crypto_skcipher_do_req()
386 if (unlikely(dst_len > U32_MAX)) { in __virtio_crypto_skcipher_do_req()
392 dst_len = min_t(unsigned int, req->cryptlen, dst_len); in __virtio_crypto_skcipher_do_req()
394 req->cryptlen, dst_len); in __virtio_crypto_skcipher_do_req()
396 if (unlikely(req->cryptlen + dst_len + ivsize + in __virtio_crypto_skcipher_do_req()
404 cpu_to_le32((uint32_t)dst_len); in __virtio_crypto_skcipher_do_req()
/linux-6.15/security/keys/
H A Ddh.c271 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
278 req->dst_len + kdfcopy->otherinfolen); in __keyctl_dh_compute()
279 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute()
280 ret = req->dst_len; in __keyctl_dh_compute()
/linux-6.15/drivers/misc/mei/
H A Dvsc-tp.c165 int ret, offset = 0, cpy_len, src_len, dst_len = sizeof(struct vsc_tp_packet_hdr); in vsc_tp_xfer_helper() local
193 cpy_len = min(src_len, dst_len); in vsc_tp_xfer_helper()
199 dst_len -= cpy_len; in vsc_tp_xfer_helper()
210 dst_len = min(ilen, le16_to_cpu(ack.len)); in vsc_tp_xfer_helper()
213 dst_len = sizeof(recv_crc); in vsc_tp_xfer_helper()
229 dst_len = sizeof(recv_crc); in vsc_tp_xfer_helper()
/linux-6.15/net/sched/
H A Dact_tunnel_key.c88 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_geneve_opt() argument
123 WARN_ON(dst_len < opt_len); in tunnel_key_copy_geneve_opt()
140 tunnel_key_copy_vxlan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_vxlan_opt() argument
167 tunnel_key_copy_erspan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_erspan_opt() argument
220 int dst_len, struct netlink_ext_ack *extack) in tunnel_key_copy_opts() argument
238 dst_len, extack); in tunnel_key_copy_opts()
247 dst_len -= opt_len; in tunnel_key_copy_opts()
258 dst_len, extack); in tunnel_key_copy_opts()
270 dst_len, extack); in tunnel_key_copy_opts()
/linux-6.15/kernel/bpf/
H A Dcrypto.c270 u32 src_len, dst_len, siv_len; in bpf_crypto_crypt() local
280 dst_len = __bpf_dynptr_size(dst); in bpf_crypto_crypt()
281 if (!src_len || !dst_len) in bpf_crypto_crypt()
290 pdst = __bpf_dynptr_data_rw(dst, dst_len); in bpf_crypto_crypt()

1234