/linux-6.6.21/lib/crypto/ |
D | chacha20poly1305.c | 57 __chacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, in __chacha20poly1305_encrypt() argument 74 chacha20_crypt(chacha_state, dst, src, src_len); in __chacha20poly1305_encrypt() 76 poly1305_update(&poly1305_state, dst, src_len); in __chacha20poly1305_encrypt() 77 if (src_len & 0xf) in __chacha20poly1305_encrypt() 78 poly1305_update(&poly1305_state, pad0, 0x10 - (src_len & 0xf)); in __chacha20poly1305_encrypt() 81 b.lens[1] = cpu_to_le64(src_len); in __chacha20poly1305_encrypt() 84 poly1305_final(&poly1305_state, dst + src_len); in __chacha20poly1305_encrypt() 90 void chacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, in chacha20poly1305_encrypt() argument 105 __chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, chacha_state); in chacha20poly1305_encrypt() 112 void xchacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, in xchacha20poly1305_encrypt() argument [all …]
|
/linux-6.6.21/arch/s390/include/asm/ |
D | cpacf.h | 254 u8 *dest, const u8 *src, long src_len) in cpacf_km() argument 260 s.odd = (unsigned long)src_len; in cpacf_km() 271 return src_len - s.odd; in cpacf_km() 286 u8 *dest, const u8 *src, long src_len) in cpacf_kmc() argument 292 s.odd = (unsigned long)src_len; in cpacf_kmc() 303 return src_len - s.odd; in cpacf_kmc() 315 const u8 *src, long src_len) in cpacf_kimd() argument 320 s.odd = (unsigned long)src_len; in cpacf_kimd() 340 const u8 *src, long src_len) in cpacf_klmd() argument 345 s.odd = (unsigned long)src_len; in cpacf_klmd() [all …]
|
/linux-6.6.21/lib/ |
D | decompress_unlzo.c | 105 u32 src_len, dst_len; in unlzo() local 207 src_len = get_unaligned_be32(in_buf); in unlzo() 211 if (src_len <= 0 || src_len > dst_len) { in unlzo() 217 if (fill && in_len < src_len) { in unlzo() 218 skip = fill(in_buf + in_len, src_len - in_len); in unlzo() 222 if (in_len < src_len) { in unlzo() 231 if (unlikely(dst_len == src_len)) in unlzo() 232 memcpy(out_buf, in_buf, src_len); in unlzo() 234 r = lzo1x_decompress_safe((u8 *) in_buf, src_len, in unlzo() 248 *posp += src_len + 12; in unlzo() [all …]
|
/linux-6.6.21/include/crypto/ |
D | chacha20poly1305.h | 18 void chacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, 24 chacha20poly1305_decrypt(u8 *dst, const u8 *src, const size_t src_len, 28 void xchacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, 34 u8 *dst, const u8 *src, const size_t src_len, const u8 *ad, 38 bool chacha20poly1305_encrypt_sg_inplace(struct scatterlist *src, size_t src_len, 43 bool chacha20poly1305_decrypt_sg_inplace(struct scatterlist *src, size_t src_len,
|
D | akcipher.h | 39 unsigned int src_len; member 279 unsigned int src_len, in akcipher_request_set_crypt() argument 284 req->src_len = src_len; in akcipher_request_set_crypt() 345 atomic64_add(req->src_len, &istat->encrypt_tlen); in crypto_akcipher_encrypt() 370 atomic64_add(req->src_len, &istat->decrypt_tlen); in crypto_akcipher_decrypt()
|
/linux-6.6.21/net/smc/ |
D | smc_tx.c | 357 size_t src_off, size_t src_len, in smcr_tx_rdma_writes() argument 366 int src_len_sum = src_len, dst_len_sum = dst_len; in smcr_tx_rdma_writes() 388 sge[srcchunk].length = src_len; in smcr_tx_rdma_writes() 394 src_off += src_len; in smcr_tx_rdma_writes() 401 src_len = dst_len - src_len; /* remainder */ in smcr_tx_rdma_writes() 402 src_len_sum += src_len; in smcr_tx_rdma_writes() 413 src_len = min_t(int, dst_len, conn->sndbuf_desc->len - in smcr_tx_rdma_writes() 415 src_len_sum = src_len; in smcr_tx_rdma_writes() 422 size_t src_off, size_t src_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-6.6.21/net/ipv4/ |
D | fib_rules.c | 38 u8 src_len; member 53 if (r->dst_len || r->src_len || r->dscp) in fib4_rule_matchall() 260 if (frh->src_len) in fib4_rule_configure() 277 rule4->src_len = frh->src_len; in fib4_rule_configure() 278 rule4->srcmask = inet_make_mask(rule4->src_len); in fib4_rule_configure() 317 if (frh->src_len && (rule4->src_len != frh->src_len)) in fib4_rule_compare() 331 if (frh->src_len && (rule4->src != nla_get_in_addr(tb[FRA_SRC]))) in fib4_rule_compare() 346 frh->src_len = rule4->src_len; in fib4_rule_fill() 351 (rule4->src_len && in fib4_rule_fill()
|
/linux-6.6.21/include/linux/ |
D | ccp.h | 183 u64 src_len; /* In bytes */ member 243 u64 src_len; /* In bytes */ member 292 u64 src_len; /* In bytes */ member 354 u64 src_len; /* In bytes */ member 382 u32 src_len; /* In bytes */ member 441 u64 src_len; /* In bytes */ member 470 u64 src_len; /* In bytes */ member
|
D | lzo.h | 24 int lzo1x_1_compress(const unsigned char *src, size_t src_len, 28 int lzorle1x_1_compress(const unsigned char *src, size_t src_len, 32 int lzo1x_decompress_safe(const unsigned char *src, size_t src_len,
|
/linux-6.6.21/crypto/ |
D | rsa-pkcs1pad.c | 237 if (req->src_len > ctx->key_size - 11) in pkcs1pad_encrypt() 245 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_encrypt() 250 ps_end = ctx->key_size - req->src_len - 2; in pkcs1pad_encrypt() 257 ctx->key_size - 1 - req->src_len, req->src); in pkcs1pad_encrypt() 348 if (!ctx->key_size || req->src_len != ctx->key_size) in pkcs1pad_decrypt() 364 req_ctx->out_sg, req->src_len, in pkcs1pad_decrypt() 391 if (req->src_len + digest_info_size > ctx->key_size - 11) in pkcs1pad_sign() 399 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_sign() 404 ps_end = ctx->key_size - digest_info_size - req->src_len - 2; in pkcs1pad_sign() 414 ctx->key_size - 1 - req->src_len, req->src); in pkcs1pad_sign() [all …]
|
D | ecrdsa.c | 99 req->dst_len * 2 != req->src_len || in ecrdsa_verify() 100 WARN_ON(req->src_len > sizeof(sig)) || in ecrdsa_verify() 104 sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, req->src_len), in ecrdsa_verify() 105 sig, req->src_len); in ecrdsa_verify() 108 req->src_len + req->dst_len), in ecrdsa_verify() 109 digest, req->dst_len, req->src_len); in ecrdsa_verify()
|
D | ecdsa.c | 154 buffer = kmalloc(req->src_len + req->dst_len, GFP_KERNEL); in ecdsa_verify() 159 sg_nents_for_len(req->src, req->src_len + req->dst_len), in ecdsa_verify() 160 buffer, req->src_len + req->dst_len, 0); in ecdsa_verify() 163 buffer, req->src_len); in ecdsa_verify() 172 memcpy(&rawhash[diff], buffer + req->src_len, req->dst_len); in ecdsa_verify() 175 memcpy(&rawhash, buffer + req->src_len, keylen); in ecdsa_verify()
|
D | sm2.c | 390 buffer = kmalloc(req->src_len + req->dst_len, GFP_KERNEL); in sm2_verify() 395 sg_nents_for_len(req->src, req->src_len + req->dst_len), in sm2_verify() 396 buffer, req->src_len + req->dst_len, 0); in sm2_verify() 401 buffer, req->src_len); in sm2_verify() 406 hash = mpi_read_raw_data(buffer + req->src_len, req->dst_len); in sm2_verify()
|
/linux-6.6.21/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 123 void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len) in rtw_buf_update() argument 132 if (!src || !src_len) in rtw_buf_update() 136 dup = rtw_malloc(src_len); in rtw_buf_update() 138 dup_len = src_len; in rtw_buf_update()
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | tracelog.c | 42 size_t src_len; in find_tracefs_mnt_single() local 47 src_len = strlen(mntpt); in find_tracefs_mnt_single() 48 if (src_len + 1 >= PATH_MAX) { in find_tracefs_mnt_single()
|
/linux-6.6.21/drivers/crypto/virtio/ |
D | virtio_crypto_akcipher_algs.c | 234 unsigned int src_len = verify ? req->src_len + req->dst_len : req->src_len; in __virtio_crypto_akcipher_do_req() local 241 src_buf = kcalloc_node(src_len, 1, GFP_KERNEL, node); in __virtio_crypto_akcipher_do_req() 247 sg_copy_to_buffer(req->src, sg_nents(req->src), src_buf, src_len); in __virtio_crypto_akcipher_do_req() 248 sg_init_one(&srcdata_sg, src_buf, src_len); in __virtio_crypto_akcipher_do_req() 251 sg_copy_to_buffer(req->src, sg_nents(req->src), src_buf, src_len); in __virtio_crypto_akcipher_do_req() 252 sg_init_one(&srcdata_sg, src_buf, src_len); in __virtio_crypto_akcipher_do_req() 313 akcipher_req->para.src_data_len = cpu_to_le32(req->src_len); in virtio_crypto_rsa_do_req()
|
/linux-6.6.21/drivers/crypto/ccp/ |
D | ccp-dmaengine.c | 366 unsigned int src_offset, src_len; in ccp_create_desc() local 384 src_len = sg_dma_len(src_sg); in ccp_create_desc() 391 if (!src_len) { in ccp_create_desc() 400 src_len = sg_dma_len(src_sg); in ccp_create_desc() 419 len = min(dst_len, src_len); in ccp_create_desc() 435 ccp_pt->src_len = len; in ccp_create_desc() 445 &ccp_pt->dst_dma, ccp_pt->src_len); in ccp_create_desc() 449 src_len -= len; in ccp_create_desc()
|
D | ccp-ops.c | 490 if (aes->src_len & (AES_BLOCK_SIZE - 1)) in ccp_run_aes_cmac_cmd() 565 ret = ccp_init_data(&src, cmd_q, aes->src, aes->src_len, in ccp_run_aes_cmac_cmd() 688 ilen = aes->src_len; in ccp_run_aes_gcm_cmd() 692 ilen = aes->src_len - authsize; in ccp_run_aes_gcm_cmd() 933 (aes->src_len & (AES_BLOCK_SIZE - 1))) in ccp_run_aes_cmd() 1022 ret = ccp_init_data(&src, cmd_q, aes->src, aes->src_len, in ccp_run_aes_cmd() 1031 ret = ccp_init_data(&dst, cmd_q, aes->dst, aes->src_len, in ccp_run_aes_cmd() 1133 if (!xts->final && (xts->src_len & (AES_BLOCK_SIZE - 1))) in ccp_run_xts_aes_cmd() 1232 ret = ccp_init_data(&src, cmd_q, xts->src, xts->src_len, in ccp_run_xts_aes_cmd() 1241 ret = ccp_init_data(&dst, cmd_q, xts->dst, xts->src_len, in ccp_run_xts_aes_cmd() [all …]
|
/linux-6.6.21/net/ipv6/ |
D | fib6_rules.c | 372 if (frh->src_len) in fib6_rule_configure() 378 rule6->src.plen = frh->src_len; in fib6_rule_configure() 406 if (frh->src_len && (rule6->src.plen != frh->src_len)) in fib6_rule_compare() 415 if (frh->src_len && in fib6_rule_compare() 432 frh->src_len = rule6->src.plen; in fib6_rule_fill()
|
/linux-6.6.21/arch/x86/xen/ |
D | setup.c | 678 phys_addr_t dest_off, src_off, dest_len, src_len, len; in xen_phys_memcpy() local 687 src_len = n; in xen_phys_memcpy() 688 if (src_len > (NR_FIX_BTMAPS << PAGE_SHIFT) - src_off) in xen_phys_memcpy() 689 src_len = (NR_FIX_BTMAPS << PAGE_SHIFT) - src_off; in xen_phys_memcpy() 690 len = min(dest_len, src_len); in xen_phys_memcpy() 692 from = early_memremap(src - src_off, src_len + src_off); in xen_phys_memcpy() 695 early_memunmap(from, src_len + src_off); in xen_phys_memcpy()
|
/linux-6.6.21/drivers/target/ |
D | target_core_rd.c | 428 u32 src_len; in rd_execute_rw() local 460 src_len = PAGE_SIZE - rd_offset; in rd_execute_rw() 475 len = min((u32)m.length, src_len); in rd_execute_rw() 495 src_len -= len; in rd_execute_rw() 496 if (src_len) { in rd_execute_rw() 504 src_len = PAGE_SIZE; in rd_execute_rw()
|
/linux-6.6.21/drivers/net/wireguard/ |
D | noise.c | 432 static void mix_hash(u8 hash[NOISE_HASH_LEN], const u8 *src, size_t src_len) in mix_hash() argument 438 blake2s_update(&blake, src, src_len); in mix_hash() 464 size_t src_len, u8 key[NOISE_SYMMETRIC_KEY_LEN], in message_encrypt() argument 467 chacha20poly1305_encrypt(dst_ciphertext, src_plaintext, src_len, hash, in message_encrypt() 470 mix_hash(hash, dst_ciphertext, noise_encrypted_len(src_len)); in message_encrypt() 474 size_t src_len, u8 key[NOISE_SYMMETRIC_KEY_LEN], in message_decrypt() argument 477 if (!chacha20poly1305_decrypt(dst_plaintext, src_ciphertext, src_len, in message_decrypt() 481 mix_hash(hash, src_ciphertext, src_len); in message_decrypt()
|
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | qat_asym_algs.c | 239 if (req->src_len > ctx->p_size) in qat_dh_compute_value() 288 if (sg_is_last(req->src) && req->src_len == ctx->p_size) { in qat_dh_compute_value() 292 int shift = ctx->p_size - req->src_len; in qat_dh_compute_value() 299 req->src, 0, req->src_len, 0); in qat_dh_compute_value() 666 if (req->src_len > ctx->key_sz) in qat_rsa_enc() 695 if (sg_is_last(req->src) && req->src_len == ctx->key_sz) { in qat_rsa_enc() 699 int shift = ctx->key_sz - req->src_len; in qat_rsa_enc() 706 0, req->src_len, 0); in qat_rsa_enc() 800 if (req->src_len > ctx->key_sz) in qat_rsa_dec() 839 if (sg_is_last(req->src) && req->src_len == ctx->key_sz) { in qat_rsa_dec() [all …]
|
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/dss/ |
D | omapdss-boot-init.c | 61 const char *src, int src_len) in omapdss_prefix_strcpy() argument 65 while (total < src_len) { in omapdss_prefix_strcpy()
|
/linux-6.6.21/drivers/block/zram/ |
D | zcomp.c | 142 const void *src, unsigned int src_len, void *dst) in zcomp_decompress() argument 147 src, src_len, in zcomp_decompress()
|