Home
last modified time | relevance | path

Searched refs:crypto_info (Results 1 – 20 of 20) sorted by relevance

/Linux-v5.4/drivers/crypto/rockchip/
Drk3288_crypto.c259 static int rk_crypto_register(struct rk_crypto_info *crypto_info) in rk_crypto_register() argument
265 rk_cipher_algs[i]->dev = crypto_info; in rk_crypto_register()
301 struct rk_crypto_info *crypto_info = data; in rk_crypto_action() local
303 reset_control_assert(crypto_info->rst); in rk_crypto_action()
315 struct rk_crypto_info *crypto_info; in rk_crypto_probe() local
318 crypto_info = devm_kzalloc(&pdev->dev, in rk_crypto_probe()
319 sizeof(*crypto_info), GFP_KERNEL); in rk_crypto_probe()
320 if (!crypto_info) { in rk_crypto_probe()
325 crypto_info->rst = devm_reset_control_get(dev, "crypto-rst"); in rk_crypto_probe()
326 if (IS_ERR(crypto_info->rst)) { in rk_crypto_probe()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/accel/
Dtls.h42 struct tls_crypto_info *crypto_info,
58 struct tls_crypto_info *crypto_info) in mlx5e_ktls_type_check() argument
60 switch (crypto_info->cipher_type) { in mlx5e_ktls_type_check()
62 if (crypto_info->version == TLS_1_2_VERSION) in mlx5e_ktls_type_check()
72 struct tls_crypto_info *crypto_info, in mlx5_ktls_create_key() argument
81 struct tls_crypto_info *crypto_info) { return false; } in mlx5e_ktls_type_check() argument
107 struct tls_crypto_info *crypto_info,
123 struct tls_crypto_info *crypto_info, in mlx5_accel_tls_add_flow() argument
Dtls.c44 struct tls_crypto_info *crypto_info, in mlx5_accel_tls_add_flow() argument
48 return mlx5_fpga_tls_add_flow(mdev, flow, crypto_info, in mlx5_accel_tls_add_flow()
89 struct tls_crypto_info *crypto_info, in mlx5_ktls_create_key() argument
95 switch (crypto_info->cipher_type) { in mlx5_ktls_create_key()
98 (struct tls12_crypto_info_aes_gcm_128 *)crypto_info; in mlx5_ktls_create_key()
106 (struct tls12_crypto_info_aes_gcm_256 *)crypto_info; in mlx5_ktls_create_key()
/Linux-v5.4/net/tls/
Dtls_main.c341 struct tls_crypto_info *crypto_info; in do_tls_getsockopt_tx() local
347 if (!optval || (len < sizeof(*crypto_info))) { in do_tls_getsockopt_tx()
358 crypto_info = &ctx->crypto_send.info; in do_tls_getsockopt_tx()
360 if (!TLS_CRYPTO_INFO_READY(crypto_info)) { in do_tls_getsockopt_tx()
365 if (len == sizeof(*crypto_info)) { in do_tls_getsockopt_tx()
366 if (copy_to_user(optval, crypto_info, sizeof(*crypto_info))) in do_tls_getsockopt_tx()
371 switch (crypto_info->cipher_type) { in do_tls_getsockopt_tx()
375 container_of(crypto_info, in do_tls_getsockopt_tx()
399 container_of(crypto_info, in do_tls_getsockopt_tx()
459 struct tls_crypto_info *crypto_info; in do_tls_setsockopt_conf() local
[all …]
Dtls_device.c893 struct tls_crypto_info *crypto_info; in tls_set_device_offload() local
916 crypto_info = &ctx->crypto_send.info; in tls_set_device_offload()
917 if (crypto_info->version != TLS_1_2_VERSION) { in tls_set_device_offload()
922 switch (crypto_info->cipher_type) { in tls_set_device_offload()
927 iv = ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->iv; in tls_set_device_offload()
930 ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->rec_seq; in tls_set_device_offload()
943 prot->version = crypto_info->version; in tls_set_device_offload()
944 prot->cipher_type = crypto_info->cipher_type; in tls_set_device_offload()
965 rc = tls_sw_fallback_init(sk, offload_ctx, crypto_info); in tls_set_device_offload()
Dtls_sw.c2208 struct tls_crypto_info *crypto_info; in tls_set_sw_offload() local
2256 crypto_info = &ctx->crypto_send.info; in tls_set_sw_offload()
2264 crypto_info = &ctx->crypto_recv.info; in tls_set_sw_offload()
2270 switch (crypto_info->cipher_type) { in tls_set_sw_offload()
2275 iv = ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->iv; in tls_set_sw_offload()
2278 ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->rec_seq; in tls_set_sw_offload()
2280 (struct tls12_crypto_info_aes_gcm_128 *)crypto_info; in tls_set_sw_offload()
2292 iv = ((struct tls12_crypto_info_aes_gcm_256 *)crypto_info)->iv; in tls_set_sw_offload()
2295 ((struct tls12_crypto_info_aes_gcm_256 *)crypto_info)->rec_seq; in tls_set_sw_offload()
2297 (struct tls12_crypto_info_aes_gcm_256 *)crypto_info; in tls_set_sw_offload()
[all …]
Dtls_device_fallback.c441 struct tls_crypto_info *crypto_info) in tls_sw_fallback_init() argument
455 key = ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->key; in tls_sw_fallback_init()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls.c21 struct tls_crypto_info *crypto_info, in mlx5e_ktls_add() argument
33 if (WARN_ON(!mlx5e_ktls_type_check(mdev, crypto_info))) in mlx5e_ktls_add()
41 tx_priv->crypto_info = *(struct tls12_crypto_info_aes_gcm_128 *)crypto_info; in mlx5e_ktls_add()
49 err = mlx5_ktls_create_key(mdev, crypto_info, &tx_priv->key_id); in mlx5e_ktls_add()
Dtls.c104 struct tls_crypto_info *crypto_info, in mlx5e_tls_add() argument
123 ret = mlx5_accel_tls_add_flow(mdev, flow, crypto_info, in mlx5e_tls_add()
Dktls.h47 struct tls12_crypto_info_aes_gcm_128 crypto_info; member
Dktls_tx.c27 struct tls12_crypto_info_aes_gcm_128 *info = &priv_tx->crypto_info; in fill_static_params_ctx()
241 struct tls12_crypto_info_aes_gcm_128 *info = &priv_tx->crypto_info; in tx_post_resync_params()
/Linux-v5.4/drivers/crypto/chelsio/chtls/
Dchtls_main.c463 struct tls_crypto_info crypto_info = { 0 }; in do_chtls_getsockopt() local
465 crypto_info.version = TLS_1_2_VERSION; in do_chtls_getsockopt()
466 if (copy_to_user(optval, &crypto_info, sizeof(struct tls_crypto_info))) in do_chtls_getsockopt()
486 struct tls_crypto_info *crypto_info, tmp_crypto_info; in do_chtls_setsockopt() local
493 if (!optval || optlen < sizeof(*crypto_info)) { in do_chtls_setsockopt()
498 rc = copy_from_user(&tmp_crypto_info, optval, sizeof(*crypto_info)); in do_chtls_setsockopt()
510 crypto_info = (struct tls_crypto_info *)&csk->tlshws.crypto_info; in do_chtls_setsockopt()
515 crypto_info[0] = tmp_crypto_info; in do_chtls_setsockopt()
517 rc = copy_from_user((char *)crypto_info + sizeof(*crypto_info), in do_chtls_setsockopt()
518 optval + sizeof(*crypto_info), in do_chtls_setsockopt()
[all …]
Dchtls.h181 struct tls12_crypto_info_aes_gcm_128 crypto_info; member
Dchtls_hw.c221 &csk->tlshws.crypto_info; in chtls_key_info()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dtls.c514 struct tls12_crypto_info_aes_gcm_128 *crypto_info = in mlx5_fpga_tls_set_aes_gcm128_ctx() local
517 memcpy(MLX5_ADDR_OF(tls_cmd, cmd, tls_rcd_sn), crypto_info->rec_seq, in mlx5_fpga_tls_set_aes_gcm128_ctx()
521 crypto_info->salt, TLS_CIPHER_AES_GCM_128_SALT_SIZE); in mlx5_fpga_tls_set_aes_gcm128_ctx()
523 crypto_info->key, TLS_CIPHER_AES_GCM_128_KEY_SIZE); in mlx5_fpga_tls_set_aes_gcm128_ctx()
528 crypto_info->key, TLS_CIPHER_AES_GCM_128_KEY_SIZE); in mlx5_fpga_tls_set_aes_gcm128_ctx()
534 struct tls_crypto_info *crypto_info) in mlx5_fpga_tls_set_key_material() argument
538 switch (crypto_info->cipher_type) { in mlx5_fpga_tls_set_key_material()
542 mlx5_fpga_tls_set_aes_gcm128_ctx(cmd, crypto_info, &rcd_sn); in mlx5_fpga_tls_set_key_material()
552 struct tls_crypto_info *crypto_info, in _mlx5_fpga_tls_add_flow() argument
567 ret = mlx5_fpga_tls_set_key_material(cmd, caps, crypto_info); in _mlx5_fpga_tls_add_flow()
[all …]
Dtls.h55 struct tls_crypto_info *crypto_info,
/Linux-v5.4/Documentation/networking/
Dtls.rst49 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));
Dtls-offload.rst93 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-v5.4/drivers/net/ethernet/netronome/nfp/crypto/
Dtls.c265 struct tls_crypto_info *crypto_info, in nfp_net_tls_add() argument
285 if (!nfp_net_cipher_supported(nn, crypto_info->cipher_type, direction)) in nfp_net_tls_add()
336 tls_ci = (struct tls12_crypto_info_aes_gcm_128 *)crypto_info; in nfp_net_tls_add()
/Linux-v5.4/include/net/
Dtls.h300 struct tls_crypto_info *crypto_info,
665 struct tls_crypto_info *crypto_info);