/openbmc/linux/crypto/ |
H A D | rsa-pkcs1pad.c | 206 req->dst_len = ctx->key_size; in pkcs1pad_encrypt_sign_complete() 241 req->dst_len = ctx->key_size; in pkcs1pad_encrypt() 279 unsigned int dst_len; in pkcs1pad_decrypt_complete() local 287 dst_len = req_ctx->child_req.dst_len; in pkcs1pad_decrypt_complete() 297 dst_len--; in pkcs1pad_decrypt_complete() 313 if (req->dst_len < dst_len - pos) in pkcs1pad_decrypt_complete() 315 req->dst_len = dst_len - pos; in pkcs1pad_decrypt_complete() 441 unsigned int dst_len; in pkcs1pad_verify_complete() local 449 dst_len = req_ctx->child_req.dst_len; in pkcs1pad_verify_complete() 459 dst_len--; in pkcs1pad_verify_complete() [all …]
|
H A D | ecrdsa.c | 77 unsigned int ndigits = req->dst_len / sizeof(u64); in ecrdsa_verify() 96 req->dst_len != ctx->digest_len || in ecrdsa_verify() 97 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) || in ecrdsa_verify() 99 req->dst_len * 2 != req->src_len || in ecrdsa_verify() 101 WARN_ON(req->dst_len > sizeof(digest))) in ecrdsa_verify() 108 req->src_len + req->dst_len), in ecrdsa_verify() 109 digest, req->dst_len, req->src_len); in ecrdsa_verify()
|
H A 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() 168 diff = keylen - req->dst_len; in ecdsa_verify() 172 memcpy(&rawhash[diff], buffer + req->src_len, req->dst_len); in ecdsa_verify()
|
H A D | jitterentropy-kcapi.c | 162 int jent_read_random_block(void *hash_state, char *dst, unsigned int dst_len) in jent_read_random_block() argument 172 if (!ret && dst_len) in jent_read_random_block() 173 memcpy(dst, jent_block, dst_len); in jent_read_random_block()
|
/openbmc/u-boot/cmd/ |
H A D | zip.c | 13 unsigned long src_len, dst_len = ~0UL; in do_zip() local 17 dst_len = simple_strtoul(argv[4], NULL, 16); in do_zip() 28 if (gzip((void *) dst, &dst_len, (void *) src, src_len) != 0) in do_zip() 31 printf("Compressed size: %lu = 0x%lX\n", dst_len, dst_len); in do_zip() 32 env_set_hex("filesize", dst_len); in do_zip()
|
H A D | lzmadec.c | 22 SizeT src_len = ~0UL, dst_len = ~0UL; in do_lzmadec() local 27 dst_len = simple_strtoul(argv[3], NULL, 16); in do_lzmadec() 37 ret = lzmaBuffToBuffDecompress(map_sysmem(dst, dst_len), &src_len, in do_lzmadec() 38 map_sysmem(src, 0), dst_len); in do_lzmadec()
|
H A D | unzip.c | 13 unsigned long src_len = ~0UL, dst_len = ~0UL; in do_unzip() local 17 dst_len = simple_strtoul(argv[3], NULL, 16); in do_unzip() 27 if (gunzip((void *) dst, dst_len, (void *) src, &src_len) != 0) in do_unzip()
|
/openbmc/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()
|
/openbmc/linux/net/smc/ |
H A D | smc_tx.c | 398 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 …]
|
/openbmc/linux/net/ipv4/ |
H A D | fib_rules.c | 37 u8 dst_len; member 53 if (r->dst_len || r->src_len || r->dscp) in fib4_rule_matchall() 263 if (frh->dst_len) in fib4_rule_configure() 279 rule4->dst_len = frh->dst_len; in fib4_rule_configure() 280 rule4->dstmask = inet_make_mask(rule4->dst_len); in fib4_rule_configure() 320 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare() 334 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DST]))) in fib4_rule_compare() 345 frh->dst_len = rule4->dst_len; in fib4_rule_fill() 349 if ((rule4->dst_len && in fib4_rule_fill()
|
/openbmc/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);
|
/openbmc/u-boot/include/linux/ |
H A D | lzo.h | 24 unsigned char *dst, size_t *dst_len, void *wrkmem); 28 unsigned char *dst, size_t *dst_len); 32 unsigned char *dst, size_t *dst_len);
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
H A D | mp.c | 103 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 108 mp->fib.dst_len = dst_len; in mlx5_lag_fib_set() 167 (mp->fib.dst != fen_info->dst || mp->fib.dst_len != fen_info->dst_len) && in mlx5_lag_fib_route_event() 176 if (mp->fib.dst == fen_info->dst && mp->fib.dst_len == fen_info->dst_len) in mlx5_lag_fib_route_event() 193 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event() 208 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event()
|
/openbmc/linux/drivers/block/zram/ |
H A D | zcomp.c | 118 const void *src, unsigned int *dst_len) in zcomp_compress() argument 134 *dst_len = PAGE_SIZE * 2; in zcomp_compress() 138 zstrm->buffer, dst_len); in zcomp_compress() 144 unsigned int dst_len = PAGE_SIZE; in zcomp_decompress() local 148 dst, &dst_len); in zcomp_decompress()
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-crypto.c | 482 op_info->dst_len + in virtio_crypto_free_request() 550 len = asym_op_info->dst_len; in virtio_crypto_akcipher_input_data_helper() 606 uint32_t src_len = 0, dst_len = 0; in virtio_crypto_sym_op_helper() local 637 if (unlikely(src_len != dst_len)) { in virtio_crypto_sym_op_helper() 651 op_info->dst_len = dst_len; in virtio_crypto_sym_op_helper() 704 curr_size += op_info->dst_len; in virtio_crypto_sym_op_helper() 766 uint32_t dst_len; in virtio_crypto_handle_asym_req() local 787 if (dst_len > 0) { in virtio_crypto_handle_asym_req() 788 dst = g_malloc0(dst_len); in virtio_crypto_handle_asym_req() 792 if (unlikely(len != dst_len)) { in virtio_crypto_handle_asym_req() [all …]
|
/openbmc/linux/lib/crypto/ |
H A D | chacha20poly1305.c | 130 size_t dst_len; in __chacha20poly1305_decrypt() local 148 dst_len = src_len - POLY1305_DIGEST_SIZE; in __chacha20poly1305_decrypt() 149 poly1305_update(&poly1305_state, src, dst_len); in __chacha20poly1305_decrypt() 150 if (dst_len & 0xf) in __chacha20poly1305_decrypt() 151 poly1305_update(&poly1305_state, pad0, 0x10 - (dst_len & 0xf)); in __chacha20poly1305_decrypt() 154 b.lens[1] = cpu_to_le64(dst_len); in __chacha20poly1305_decrypt() 159 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt() 161 chacha20_crypt(chacha_state, dst, src, dst_len); in __chacha20poly1305_decrypt()
|
/openbmc/qemu/backends/ |
H A D | cryptodev-lkcf.c | 360 asym_op_info->dst, asym_op_info->dst_len); in cryptodev_lkcf_execute_task() 364 asym_op_info->dst, asym_op_info->dst_len, &local_error); in cryptodev_lkcf_execute_task() 372 asym_op_info->dst, asym_op_info->dst_len); in cryptodev_lkcf_execute_task() 376 asym_op_info->dst, asym_op_info->dst_len, &local_error); in cryptodev_lkcf_execute_task() 384 asym_op_info->dst, asym_op_info->dst_len); in cryptodev_lkcf_execute_task() 388 asym_op_info->dst, asym_op_info->dst_len, &local_error); in cryptodev_lkcf_execute_task() 396 asym_op_info->dst, asym_op_info->dst_len); in cryptodev_lkcf_execute_task() 400 asym_op_info->dst, asym_op_info->dst_len, &local_error); in cryptodev_lkcf_execute_task() 422 asym_op_info->dst_len = ret; in cryptodev_lkcf_execute_task()
|
H A D | cryptodev-builtin.c | 494 op_info->dst, op_info->dst_len, errp); in cryptodev_builtin_asym_operation() 500 op_info->dst, op_info->dst_len, errp); in cryptodev_builtin_asym_operation() 506 op_info->dst, op_info->dst_len, errp); in cryptodev_builtin_asym_operation() 512 op_info->dst, op_info->dst_len, errp); in cryptodev_builtin_asym_operation() 527 if (unlikely(ret > op_info->dst_len)) { in cryptodev_builtin_asym_operation() 535 op_info->dst_len = ret; in cryptodev_builtin_asym_operation()
|
/openbmc/linux/include/crypto/ |
H A D | akcipher.h | 40 unsigned int dst_len; member 280 unsigned int dst_len) in akcipher_request_set_crypt() argument 285 req->dst_len = dst_len; in akcipher_request_set_crypt()
|
/openbmc/linux/drivers/crypto/virtio/ |
H A D | virtio_crypto_skcipher_algs.c | 337 u64 dst_len; in __virtio_crypto_skcipher_do_req() local 387 dst_len = virtio_crypto_alg_sg_nents_length(req->dst); in __virtio_crypto_skcipher_do_req() 388 if (unlikely(dst_len > U32_MAX)) { in __virtio_crypto_skcipher_do_req() 394 dst_len = min_t(unsigned int, req->cryptlen, dst_len); in __virtio_crypto_skcipher_do_req() 396 req->cryptlen, dst_len); in __virtio_crypto_skcipher_do_req() 398 if (unlikely(req->cryptlen + dst_len + ivsize + in __virtio_crypto_skcipher_do_req() 406 cpu_to_le32((uint32_t)dst_len); in __virtio_crypto_skcipher_do_req()
|
/openbmc/u-boot/lib/lzo/ |
H A D | lzo1x_decompress.c | 79 unsigned char *dst, size_t *dst_len) in lzop_decompress() argument 91 remaining = *dst_len; in lzop_decompress() 99 *dst_len = dst - start; in lzop_decompress() 125 *dst_len = dst - start; in lzop_decompress()
|
/openbmc/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()
|
/openbmc/linux/net/sched/ |
H A D | act_tunnel_key.c | 88 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()
|
/openbmc/qemu/crypto/ |
H A D | akcipher.c | 114 uint8_t **dst, size_t *dst_len, in qcrypto_akcipher_export_p8info() argument 119 qcrypto_akcipher_rsakey_export_p8info(key, keylen, dst, dst_len); in qcrypto_akcipher_export_p8info()
|
/openbmc/linux/net/ipv6/ |
H A D | fib6_rules.c | 379 if (frh->dst_len) in fib6_rule_configure() 383 rule6->dst.plen = frh->dst_len; in fib6_rule_configure() 413 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare() 423 if (frh->dst_len && in fib6_rule_compare() 435 frh->dst_len = rule6->dst.plen; in fib6_rule_fill()
|