| /linux/crypto/ |
| H A D | rsa-pkcs1pad.c | 87 len = req_ctx->child_req.dst_len; in pkcs1pad_encrypt_complete() 107 req->dst_len = ctx->key_size; in pkcs1pad_encrypt_complete() 141 if (req->dst_len < ctx->key_size) { in pkcs1pad_encrypt() 142 req->dst_len = ctx->key_size; in pkcs1pad_encrypt() 166 req->dst, ctx->key_size - 1, req->dst_len); 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() [all …]
|
| H A D | rsassa-pkcs1.c | 228 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 D | jitterentropy-kcapi.c | 174 int jent_read_random_block(void *hash_state, char *dst, unsigned int dst_len) in jent_read_random_block() argument 184 if (!ret && dst_len) in jent_read_random_block() 185 memcpy(dst, jent_block, dst_len); in jent_read_random_block()
|
| /linux/lib/ |
| H A D | decompress_unlzo.c | 105 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/net/smc/ |
| H A D | smc_tx.c | 358 size_t dst_off, size_t dst_len, in smcr_tx_rdma_writes() argument 366 int src_len_sum = src_len, dst_len_sum = dst_len; in smcr_tx_rdma_writes() 377 if (dst_len < link->qp_attr.cap.max_inline_data) { in smcr_tx_rdma_writes() 398 if (src_len_sum == dst_len) in smcr_tx_rdma_writes() 401 src_len = dst_len - src_len; /* remainder */ 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() 413 src_len = min_t(int, dst_len, conn->sndbuf_desc->len - in smcr_tx_rdma_writes() 423 size_t dst_off, size_t dst_len) in smcd_tx_rdma_writes() argument 425 int src_len_sum = src_len, dst_len_sum = dst_len; in smcd_tx_rdma_writes() [all …]
|
| /linux/include/linux/ |
| H A D | lzo.h | 25 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/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
| H A D | mp.c | 108 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() 178 mp->fib.dst_len <= fen_info->dst_len && in mlx5_lag_fib_route_event() 179 !(mp->fib.dst_len == fen_info->dst_len && in mlx5_lag_fib_route_event() 191 if (mp->fib.dst == fen_info->dst && mp->fib.dst_len == fen_info->dst_len) in mlx5_lag_fib_route_event() 210 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event() 225 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event()
|
| /linux/net/ipv4/ |
| H A D | fib_rules.c | 38 u8 dst_len; member 56 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/drivers/block/zram/ |
| H A D | backend_lz4.c | 78 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 D | backend_lz4hc.c | 78 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 D | backend_842.c | 35 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 D | backend_zstd.c | 177 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 D | zcomp.c | 138 const void *src, unsigned int *dst_len) in zcomp_compress() argument 144 .dst_len = 2 * PAGE_SIZE, in zcomp_compress() 151 *dst_len = req.dst_len; in zcomp_compress() 162 .dst_len = PAGE_SIZE, in zcomp_decompress()
|
| H A D | backend_deflate.c | 104 deflate->avail_out = req->dst_len; in deflate_compress() 110 req->dst_len = deflate->total_out; in deflate_compress() 131 inflate->avail_out = req->dst_len; in deflate_decompress()
|
| H A D | backend_lzo.c | 37 &req->dst_len, ctx->context); in lzo_compress() 47 req->dst, &req->dst_len); in lzo_decompress()
|
| H A D | backend_lzorle.c | 37 &req->dst_len, ctx->context); in lzorle_compress() 47 req->dst, &req->dst_len); in lzorle_decompress()
|
| H A D | zcomp.h | 54 size_t dst_len; member 92 const void *src, unsigned int *dst_len);
|
| /linux/lib/crypto/ |
| H A D | chacha20poly1305.c | 132 size_t dst_len; in __chacha20poly1305_decrypt() local 150 dst_len = src_len - POLY1305_DIGEST_SIZE; in __chacha20poly1305_decrypt() 151 poly1305_update(&poly1305_state, src, dst_len); in __chacha20poly1305_decrypt() 152 if (dst_len & 0xf) in __chacha20poly1305_decrypt() 153 poly1305_update(&poly1305_state, pad0, 0x10 - (dst_len & 0xf)); in __chacha20poly1305_decrypt() 156 b.lens[1] = cpu_to_le64(dst_len); in __chacha20poly1305_decrypt() 161 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt() 163 chacha20_crypt(chacha_state, dst, src, dst_len); in __chacha20poly1305_decrypt()
|
| /linux/include/crypto/ |
| H A D | akcipher.h | 35 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/kernel/bpf/ |
| H A D | crypto.c | 276 u32 src_len, dst_len, siv_len; in bpf_crypto_crypt() local 286 dst_len = __bpf_dynptr_size(dst); in bpf_crypto_crypt() 287 if (!src_len || !dst_len || src_len > dst_len) in bpf_crypto_crypt() 296 pdst = __bpf_dynptr_data_rw(dst, dst_len); in bpf_crypto_crypt()
|
| /linux/drivers/crypto/virtio/ |
| H A D | virtio_crypto_skcipher_algs.c | 335 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/drivers/misc/mei/ |
| H A D | vsc-tp.c | 168 int ret, offset = 0, cpy_len, src_len, dst_len = sizeof(struct vsc_tp_packet_hdr); in vsc_tp_xfer_helper() local 196 cpy_len = min(src_len, dst_len); in vsc_tp_xfer_helper() 202 dst_len -= cpy_len; in vsc_tp_xfer_helper() 213 dst_len = min(ilen, le16_to_cpu(ack.len)); in vsc_tp_xfer_helper() 216 dst_len = sizeof(recv_crc); in vsc_tp_xfer_helper() 232 dst_len = sizeof(recv_crc); in vsc_tp_xfer_helper()
|
| /linux/security/keys/ |
| H A D | dh.c | 271 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/net/sched/ |
| H A D | act_tunnel_key.c | 86 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_geneve_opt() argument 121 WARN_ON(dst_len < opt_len); in tunnel_key_copy_geneve_opt() 138 tunnel_key_copy_vxlan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_vxlan_opt() argument 165 tunnel_key_copy_erspan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_erspan_opt() argument 218 int dst_len, struct netlink_ext_ack *extack) in tunnel_key_copy_opts() argument 236 dst_len, extack); in tunnel_key_copy_opts() 245 dst_len -= opt_len; in tunnel_key_copy_opts() 256 dst_len, extack); in tunnel_key_copy_opts() 268 dst_len, extack); in tunnel_key_copy_opts()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | qat_asym_algs.c | 174 areq->dst_len = req->ctx.dh->p_size; in qat_dh_cb() 179 areq->dst_len, 1); in qat_dh_cb() 236 if (req->dst_len < ctx->p_size) { in qat_dh_compute_value() 237 req->dst_len = ctx->p_size; in qat_dh_compute_value() 318 if (sg_is_last(req->dst) && req->dst_len == ctx->p_size) { in qat_dh_compute_value() 581 areq->dst_len = req->ctx.rsa->key_sz; in qat_rsa_cb() 586 areq->dst_len, 1); in qat_rsa_cb() 714 if (req->dst_len < ctx->key_sz) { in qat_rsa_enc() 715 req->dst_len = ctx->key_sz; in qat_rsa_enc() 768 if (sg_is_last(req->dst) && req->dst_len == ctx->key_sz) { in qat_rsa_enc() [all …]
|