/linux-5.19.10/drivers/crypto/rockchip/ |
D | rk3288_crypto.c | 260 static int rk_crypto_register(struct rk_crypto_info *crypto_info) in rk_crypto_register() argument 266 rk_cipher_algs[i]->dev = crypto_info; in rk_crypto_register() 302 struct rk_crypto_info *crypto_info = data; in rk_crypto_action() local 304 reset_control_assert(crypto_info->rst); in rk_crypto_action() 316 struct rk_crypto_info *crypto_info; in rk_crypto_probe() local 319 crypto_info = devm_kzalloc(&pdev->dev, in rk_crypto_probe() 320 sizeof(*crypto_info), GFP_KERNEL); in rk_crypto_probe() 321 if (!crypto_info) { in rk_crypto_probe() 326 crypto_info->rst = devm_reset_control_get(dev, "crypto-rst"); in rk_crypto_probe() 327 if (IS_ERR(crypto_info->rst)) { in rk_crypto_probe() [all …]
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ktls.c | 11 struct tls_crypto_info *crypto_info, in mlx5_ktls_create_key() argument 17 switch (crypto_info->cipher_type) { in mlx5_ktls_create_key() 20 (struct tls12_crypto_info_aes_gcm_128 *)crypto_info; in mlx5_ktls_create_key() 28 (struct tls12_crypto_info_aes_gcm_256 *)crypto_info; in mlx5_ktls_create_key() 50 struct tls_crypto_info *crypto_info, in mlx5e_ktls_add() argument 57 if (!mlx5e_ktls_type_check(mdev, crypto_info)) in mlx5e_ktls_add() 61 err = mlx5e_ktls_add_tx(netdev, sk, crypto_info, start_offload_tcp_sn); in mlx5e_ktls_add() 63 err = mlx5e_ktls_add_rx(netdev, sk, crypto_info, start_offload_tcp_sn); in mlx5e_ktls_add()
|
D | ktls.h | 13 struct tls_crypto_info *crypto_info, 32 struct tls_crypto_info *crypto_info) in mlx5e_ktls_type_check() argument 34 switch (crypto_info->cipher_type) { in mlx5e_ktls_type_check() 36 if (crypto_info->version == TLS_1_2_VERSION) in mlx5e_ktls_type_check()
|
D | ktls_tx.c | 56 struct tls12_crypto_info_aes_gcm_128 crypto_info; member 86 struct tls_crypto_info *crypto_info, u32 start_offload_tcp_sn) in mlx5e_ktls_add_tx() argument 102 err = mlx5_ktls_create_key(mdev, crypto_info, &priv_tx->key_id); in mlx5e_ktls_add_tx() 108 priv_tx->crypto_info = in mlx5e_ktls_add_tx() 109 *(struct tls12_crypto_info_aes_gcm_128 *)crypto_info; in mlx5e_ktls_add_tx() 180 mlx5e_ktls_build_static_params(wqe, sq->pc, sq->sqn, &priv_tx->crypto_info, in post_static_params() 290 struct tls12_crypto_info_aes_gcm_128 *info = &priv_tx->crypto_info; in tx_post_resync_params()
|
D | ktls_utils.h | 23 struct tls_crypto_info *crypto_info, u32 start_offload_tcp_sn); 26 struct tls_crypto_info *crypto_info, u32 start_offload_tcp_sn);
|
D | ktls_rx.c | 46 struct tls12_crypto_info_aes_gcm_128 crypto_info; member 149 mlx5e_ktls_build_static_params(wqe, sq->pc, sq->sqn, &priv_rx->crypto_info, in post_static_params() 365 struct tls12_crypto_info_aes_gcm_128 *info = &priv_rx->crypto_info; in resync_handle_seq_match() 583 struct tls_crypto_info *crypto_info, in mlx5e_ktls_add_rx() argument 600 err = mlx5_ktls_create_key(mdev, crypto_info, &priv_rx->key_id); in mlx5e_ktls_add_rx() 606 priv_rx->crypto_info = in mlx5e_ktls_add_rx() 607 *(struct tls12_crypto_info_aes_gcm_128 *)crypto_info; in mlx5e_ktls_add_rx()
|
/linux-5.19.10/net/tls/ |
D | tls_main.c | 340 struct tls_crypto_info *crypto_info; in do_tls_getsockopt_conf() local 347 if (!optval || (len < sizeof(*crypto_info))) { in do_tls_getsockopt_conf() 359 crypto_info = &ctx->crypto_send.info; in do_tls_getsockopt_conf() 362 crypto_info = &ctx->crypto_recv.info; in do_tls_getsockopt_conf() 366 if (!TLS_CRYPTO_INFO_READY(crypto_info)) { in do_tls_getsockopt_conf() 371 if (len == sizeof(*crypto_info)) { in do_tls_getsockopt_conf() 372 if (copy_to_user(optval, crypto_info, sizeof(*crypto_info))) in do_tls_getsockopt_conf() 377 switch (crypto_info->cipher_type) { in do_tls_getsockopt_conf() 381 container_of(crypto_info, in do_tls_getsockopt_conf() 405 container_of(crypto_info, in do_tls_getsockopt_conf() [all …]
|
D | tls_device.c | 1047 struct tls_crypto_info *crypto_info; in tls_set_device_offload() local 1071 crypto_info = &ctx->crypto_send.info; in tls_set_device_offload() 1072 if (crypto_info->version != TLS_1_2_VERSION) { in tls_set_device_offload() 1077 switch (crypto_info->cipher_type) { in tls_set_device_offload() 1082 iv = ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->iv; in tls_set_device_offload() 1086 ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->rec_seq; in tls_set_device_offload() 1099 prot->version = crypto_info->version; in tls_set_device_offload() 1100 prot->cipher_type = crypto_info->cipher_type; in tls_set_device_offload() 1134 rc = tls_sw_fallback_init(sk, offload_ctx, crypto_info); in tls_set_device_offload()
|
D | tls_sw.c | 2256 struct tls_crypto_info *crypto_info; in tls_set_sw_offload() local 2302 crypto_info = &ctx->crypto_send.info; in tls_set_sw_offload() 2311 crypto_info = &ctx->crypto_recv.info; in tls_set_sw_offload() 2317 switch (crypto_info->cipher_type) { in tls_set_sw_offload() 2321 gcm_128_info = (void *)crypto_info; in tls_set_sw_offload() 2338 gcm_256_info = (void *)crypto_info; in tls_set_sw_offload() 2355 ccm_128_info = (void *)crypto_info; in tls_set_sw_offload() 2372 chacha20_poly1305_info = (void *)crypto_info; in tls_set_sw_offload() 2389 sm4_gcm_info = (void *)crypto_info; in tls_set_sw_offload() 2406 sm4_ccm_info = (void *)crypto_info; in tls_set_sw_offload() [all …]
|
D | tls_device_fallback.c | 449 struct tls_crypto_info *crypto_info) in tls_sw_fallback_init() argument 463 key = ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->key; in tls_sw_fallback_init()
|
/linux-5.19.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_main.c | 470 struct tls_crypto_info crypto_info = { 0 }; in do_chtls_getsockopt() local 472 crypto_info.version = TLS_1_2_VERSION; in do_chtls_getsockopt() 473 if (copy_to_user(optval, &crypto_info, sizeof(struct tls_crypto_info))) in do_chtls_getsockopt() 493 struct tls_crypto_info *crypto_info, tmp_crypto_info; in do_chtls_setsockopt() local 501 if (sockptr_is_null(optval) || optlen < sizeof(*crypto_info)) { in do_chtls_setsockopt() 506 rc = copy_from_sockptr(&tmp_crypto_info, optval, sizeof(*crypto_info)); in do_chtls_setsockopt() 518 crypto_info = (struct tls_crypto_info *)&csk->tlshws.crypto_info; in do_chtls_setsockopt() 526 crypto_info[0] = tmp_crypto_info; in do_chtls_setsockopt() 528 rc = copy_from_sockptr_offset((char *)crypto_info + in do_chtls_setsockopt() 529 sizeof(*crypto_info), in do_chtls_setsockopt() [all …]
|
D | chtls_hw.c | 272 &csk->tlshws.crypto_info; in chtls_key_info() 285 &csk->tlshws.crypto_info; in chtls_key_info()
|
D | chtls.h | 275 } crypto_info; member
|
/linux-5.19.10/drivers/net/ethernet/fungible/funeth/ |
D | funeth_ktls.c | 20 struct tls_crypto_info *crypto_info, in fun_ktls_add() argument 38 if (crypto_info->version == TLS_1_2_VERSION) in fun_ktls_add() 43 switch (crypto_info->cipher_type) { in fun_ktls_add() 45 struct tls12_crypto_info_aes_gcm_128 *c = (void *)crypto_info; in fun_ktls_add()
|
/linux-5.19.10/Documentation/networking/ |
D | tls.rst | 49 struct tls12_crypto_info_aes_gcm_128 crypto_info; 51 crypto_info.info.version = TLS_1_2_VERSION; 52 crypto_info.info.cipher_type = TLS_CIPHER_AES_GCM_128; 53 memcpy(crypto_info.iv, iv_write, TLS_CIPHER_AES_GCM_128_IV_SIZE); 54 memcpy(crypto_info.rec_seq, seq_number_write, 56 memcpy(crypto_info.key, cipher_key_write, TLS_CIPHER_AES_GCM_128_KEY_SIZE); 57 memcpy(crypto_info.salt, implicit_iv_write, TLS_CIPHER_AES_GCM_128_SALT_SIZE); 59 setsockopt(sock, SOL_TLS, TLS_TX, &crypto_info, sizeof(crypto_info));
|
D | tls-offload.rst | 93 struct tls_crypto_info *crypto_info, 99 Cryptographic information in ``crypto_info`` includes the key, iv, salt 102 sequence number from ``crypto_info``. The driver can add its state
|
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/crypto/ |
D | tls.c | 266 struct tls_crypto_info *crypto_info, in nfp_net_tls_add() argument 286 if (!nfp_net_cipher_supported(nn, crypto_info->cipher_type, direction)) in nfp_net_tls_add() 337 tls_ci = (struct tls12_crypto_info_aes_gcm_128 *)crypto_info; in nfp_net_tls_add()
|
/linux-5.19.10/include/net/ |
D | tls.h | 288 struct tls_crypto_info *crypto_info, 704 struct tls_crypto_info *crypto_info);
|
/linux-5.19.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
D | chcr_ktls.c | 71 struct tls_crypto_info *crypto_info, in chcr_ktls_save_keys() argument 81 switch (crypto_info->cipher_type) { in chcr_ktls_save_keys() 84 (struct tls12_crypto_info_aes_gcm_128 *)crypto_info; in chcr_ktls_save_keys() 129 crypto_info->cipher_type); in chcr_ktls_save_keys() 415 struct tls_crypto_info *crypto_info, in chcr_ktls_dev_add() argument 476 ret = chcr_ktls_save_keys(tx_info, crypto_info, direction); in chcr_ktls_dev_add()
|
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_main.c | 6444 struct tls_crypto_info *crypto_info, in cxgb4_ktls_dev_add() argument 6461 crypto_info, in cxgb4_ktls_dev_add()
|