/linux-master/drivers/crypto/rockchip/ |
H A D | rk3288_crypto.c | 236 static void register_debugfs(struct rk_crypto_info *crypto_info) argument 252 static int rk_crypto_register(struct rk_crypto_info *crypto_info) argument 258 rk_cipher_algs[i]->dev = crypto_info; 261 dev_info(crypto_info->dev, "Register %s as %s\n", 267 dev_info(crypto_info->dev, "Register %s as %s\n", 273 dev_err(crypto_info->dev, "unknown algorithm\n"); 319 struct rk_crypto_info *crypto_info, *first; local 322 crypto_info = devm_kzalloc(&pdev->dev, 323 sizeof(*crypto_info), GFP_KERNEL); 324 if (!crypto_info) { [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ktls_txrx.c | 24 union mlx5e_crypto_info *crypto_info, 35 switch (crypto_info->crypto_info.cipher_type) { 38 &crypto_info->crypto_info_128; 45 &crypto_info->crypto_info_256; 52 crypto_info->crypto_info.cipher_type); 76 union mlx5e_crypto_info *crypto_info, 97 fill_static_params(&wqe->params, crypto_info, key_id, resync_tcp_sn); 23 fill_static_params(struct mlx5_wqe_tls_static_params_seg *params, union mlx5e_crypto_info *crypto_info, u32 key_id, u32 resync_tcp_sn) argument 74 mlx5e_ktls_build_static_params(struct mlx5e_set_tls_static_params_wqe *wqe, u16 pc, u32 sqn, union mlx5e_crypto_info *crypto_info, u32 tis_tir_num, u32 key_id, u32 resync_tcp_sn, bool fence, enum tls_offload_ctx_dir direction) argument
|
H A D | ktls.c | 13 struct tls_crypto_info *crypto_info) 18 switch (crypto_info->cipher_type) { 21 (struct tls12_crypto_info_aes_gcm_128 *)crypto_info; 29 (struct tls12_crypto_info_aes_gcm_256 *)crypto_info; 50 struct tls_crypto_info *crypto_info, 57 if (!mlx5e_ktls_type_check(mdev, crypto_info)) 61 err = mlx5e_ktls_add_tx(netdev, sk, crypto_info, start_offload_tcp_sn); 63 err = mlx5e_ktls_add_rx(netdev, sk, crypto_info, start_offload_tcp_sn); 12 mlx5_ktls_create_key(struct mlx5_crypto_dek_pool *dek_pool, struct tls_crypto_info *crypto_info) argument 48 mlx5e_ktls_add(struct net_device *netdev, struct sock *sk, enum tls_offload_ctx_dir direction, struct tls_crypto_info *crypto_info, u32 start_offload_tcp_sn) argument
|
H A 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); 31 struct tls_crypto_info crypto_info; member in union:mlx5e_crypto_info 81 union mlx5e_crypto_info *crypto_info,
|
H A D | ktls.h | 17 struct tls_crypto_info *crypto_info); 37 struct tls_crypto_info *crypto_info) 39 switch (crypto_info->cipher_type) { 41 if (crypto_info->version == TLS_1_2_VERSION) 45 if (crypto_info->version == TLS_1_2_VERSION) 36 mlx5e_ktls_type_check(struct mlx5_core_dev *mdev, struct tls_crypto_info *crypto_info) argument
|
H A D | ktls_tx.c | 97 union mlx5e_crypto_info crypto_info; member in struct:mlx5e_ktls_offload_context_tx 455 struct tls_crypto_info *crypto_info, u32 start_offload_tcp_sn) 472 switch (crypto_info->cipher_type) { 474 priv_tx->crypto_info.crypto_info_128 = 475 *(struct tls12_crypto_info_aes_gcm_128 *)crypto_info; 478 priv_tx->crypto_info.crypto_info_256 = 479 *(struct tls12_crypto_info_aes_gcm_256 *)crypto_info; 483 crypto_info->cipher_type); 488 dek = mlx5_ktls_create_key(priv->tls->dek_pool, crypto_info); 559 mlx5e_ktls_build_static_params(wqe, sq->pc, sq->sqn, &priv_tx->crypto_info, 454 mlx5e_ktls_add_tx(struct net_device *netdev, struct sock *sk, struct tls_crypto_info *crypto_info, u32 start_offload_tcp_sn) argument [all...] |
H A D | ktls_rx.c | 46 union mlx5e_crypto_info crypto_info; member in struct:mlx5e_ktls_offload_context_rx 149 mlx5e_ktls_build_static_params(wqe, sq->pc, sq->sqn, &priv_rx->crypto_info, 376 switch (priv_rx->crypto_info.crypto_info.cipher_type) { 379 &priv_rx->crypto_info.crypto_info_128; 387 &priv_rx->crypto_info.crypto_info_256; 395 priv_rx->crypto_info.crypto_info.cipher_type); 606 struct tls_crypto_info *crypto_info, 622 switch (crypto_info 605 mlx5e_ktls_add_rx(struct net_device *netdev, struct sock *sk, struct tls_crypto_info *crypto_info, u32 start_offload_tcp_sn) argument [all...] |
/linux-master/net/tls/ |
H A D | tls_main.c | 76 .crypto_info = sizeof(struct ci) 443 struct tls_crypto_info *crypto_info; local 450 if (!optval || (len < sizeof(*crypto_info))) { 462 crypto_info = &ctx->crypto_send.info; 465 crypto_info = &ctx->crypto_recv.info; 469 if (!TLS_CRYPTO_INFO_READY(crypto_info)) { 474 if (len == sizeof(*crypto_info)) { 475 if (copy_to_user(optval, crypto_info, sizeof(*crypto_info))) 480 cipher_desc = get_cipher_desc(crypto_info 587 validate_crypto_info(const struct tls_crypto_info *crypto_info, const struct tls_crypto_info *alt_crypto_info) argument 615 struct tls_crypto_info *crypto_info; local [all...] |
H A D | tls.h | 67 size_t crypto_info; member in struct:tls_cipher_desc 82 static inline char *crypto_info_iv(struct tls_crypto_info *crypto_info, argument 85 return (char *)crypto_info + cipher_desc->iv_offset; 88 static inline char *crypto_info_key(struct tls_crypto_info *crypto_info, argument 91 return (char *)crypto_info + cipher_desc->key_offset; 94 static inline char *crypto_info_salt(struct tls_crypto_info *crypto_info, argument 97 return (char *)crypto_info + cipher_desc->salt_offset; 100 static inline char *crypto_info_rec_seq(struct tls_crypto_info *crypto_info, argument 103 return (char *)crypto_info + cipher_desc->rec_seq_offset; 146 const struct tls_crypto_info *crypto_info, [all...] |
H A D | tls_device_fallback.c | 459 struct tls_crypto_info *crypto_info) 464 cipher_desc = get_cipher_desc(crypto_info->cipher_type); 478 crypto_info_key(crypto_info, cipher_desc), 457 tls_sw_fallback_init(struct sock *sk, struct tls_offload_context_tx *offload_ctx, struct tls_crypto_info *crypto_info) argument
|
H A D | tls_device.c | 1065 struct tls_crypto_info *crypto_info; local 1090 crypto_info = &ctx->crypto_send.info; 1091 if (crypto_info->version != TLS_1_2_VERSION) { 1096 cipher_desc = get_cipher_desc(crypto_info->cipher_type); 1102 rc = init_prot_info(prot, crypto_info, cipher_desc); 1106 iv = crypto_info_iv(crypto_info, cipher_desc); 1107 rec_seq = crypto_info_rec_seq(crypto_info, cipher_desc); 1124 rc = tls_sw_fallback_init(sk, offload_ctx, crypto_info);
|
H A D | tls_sw.c | 2658 const struct tls_crypto_info *crypto_info, 2663 if (crypto_info->version == TLS_1_3_VERSION) { 2676 prot->version = crypto_info->version; 2677 prot->cipher_type = crypto_info->cipher_type; 2693 struct tls_crypto_info *crypto_info; local 2711 crypto_info = &ctx->crypto_send.info; 2720 crypto_info = &ctx->crypto_recv.info; 2725 cipher_desc = get_cipher_desc(crypto_info->cipher_type); 2731 rc = init_prot_info(prot, crypto_info, cipher_desc); 2735 iv = crypto_info_iv(crypto_info, cipher_des 2657 init_prot_info(struct tls_prot_info *prot, const struct tls_crypto_info *crypto_info, const struct tls_cipher_desc *cipher_desc) argument [all...] |
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_main.c | 470 struct tls_crypto_info crypto_info = { 0 }; local 472 crypto_info.version = TLS_1_2_VERSION; 473 if (copy_to_user(optval, &crypto_info, sizeof(struct tls_crypto_info))) 493 struct tls_crypto_info *crypto_info, tmp_crypto_info; local 501 if (sockptr_is_null(optval) || optlen < sizeof(*crypto_info)) { 506 rc = copy_from_sockptr(&tmp_crypto_info, optval, sizeof(*crypto_info)); 518 crypto_info = (struct tls_crypto_info *)&csk->tlshws.crypto_info; 526 crypto_info[0] = tmp_crypto_info; 528 rc = copy_from_sockptr_offset((char *)crypto_info [all...] |
H A D | chtls_hw.c | 272 &csk->tlshws.crypto_info; 285 &csk->tlshws.crypto_info;
|
H A D | chtls.h | 275 } crypto_info; member in struct:chtls_hws
|
/linux-master/drivers/net/ethernet/fungible/funeth/ |
H A D | funeth_ktls.c | 20 struct tls_crypto_info *crypto_info, 38 if (crypto_info->version == TLS_1_2_VERSION) 43 switch (crypto_info->cipher_type) { 45 struct tls12_crypto_info_aes_gcm_128 *c = (void *)crypto_info; 18 fun_ktls_add(struct net_device *netdev, struct sock *sk, enum tls_offload_ctx_dir direction, struct tls_crypto_info *crypto_info, u32 start_offload_tcp_sn) argument
|
/linux-master/tools/testing/selftests/net/ |
H A D | tls.c | 33 struct tls_crypto_info crypto_info; member in union:tls_crypto_info_keys::__anon181 248 tls12.crypto_info.version = 200; 249 tls12.crypto_info.cipher_type = TLS_CIPHER_AES_GCM_128; 252 tls12.crypto_info.version = TLS_1_2_VERSION; 253 tls12.crypto_info.cipher_type = 50; 256 tls12.crypto_info.version = TLS_1_2_VERSION; 257 tls12.crypto_info.cipher_type = 59; 260 tls12.crypto_info.version = TLS_1_2_VERSION; 261 tls12.crypto_info.cipher_type = 10; 264 tls12.crypto_info [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/crypto/ |
H A D | tls.c | 266 struct tls_crypto_info *crypto_info, 286 if (!nfp_net_cipher_supported(nn, crypto_info->cipher_type, direction)) 337 tls_ci = (struct tls12_crypto_info_aes_gcm_128 *)crypto_info; 264 nfp_net_tls_add(struct net_device *netdev, struct sock *sk, enum tls_offload_ctx_dir direction, struct tls_crypto_info *crypto_info, u32 start_offload_tcp_sn) argument
|
/linux-master/include/net/ |
H A D | tls.h | 272 struct tls_crypto_info *crypto_info,
|
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 66 * @crypto_info - tls crypto information. 71 struct tls_crypto_info *crypto_info, 81 switch (crypto_info->cipher_type) { 84 (struct tls12_crypto_info_aes_gcm_128 *)crypto_info; 129 crypto_info->cipher_type); 413 struct tls_crypto_info *crypto_info, 471 ret = chcr_ktls_save_keys(tx_info, crypto_info, direction); 70 chcr_ktls_save_keys(struct chcr_ktls_info *tx_info, struct tls_crypto_info *crypto_info, enum tls_offload_ctx_dir direction) argument 411 chcr_ktls_dev_add(struct net_device *netdev, struct sock *sk, enum tls_offload_ctx_dir direction, struct tls_crypto_info *crypto_info, u32 start_offload_tcp_sn) argument
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_main.c | 6438 struct tls_crypto_info *crypto_info, 6455 crypto_info, 6436 cxgb4_ktls_dev_add(struct net_device *netdev, struct sock *sk, enum tls_offload_ctx_dir direction, struct tls_crypto_info *crypto_info, u32 tcp_sn) argument
|