/Linux-v5.10/drivers/crypto/marvell/octeontx/ |
D | otx_cptvf_algs.c | 155 if (ctx->cipher_type == OTX_CPT_AES_CBC || in output_iv_copyback() 156 ctx->cipher_type == OTX_CPT_DES3_CBC) { in output_iv_copyback() 255 if ((ctx->cipher_type == OTX_CPT_AES_CBC || in create_ctx_hdr() 256 ctx->cipher_type == OTX_CPT_DES3_CBC) && in create_ctx_hdr() 271 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 275 if (ctx->cipher_type == OTX_CPT_AES_XTS) in create_ctx_hdr() 406 ctx->cipher_type = OTX_CPT_AES_XTS; in otx_cpt_skcipher_xts_setkey() 422 u32 keylen, u8 cipher_type) in cpt_des_setkey() argument 430 ctx->cipher_type = cipher_type; in cpt_des_setkey() 438 u32 keylen, u8 cipher_type) in cpt_aes_setkey() argument [all …]
|
D | otx_cptvf_algs.h | 132 u8 cipher_type; member 177 u8 cipher_type; member
|
/Linux-v5.10/drivers/crypto/cavium/cpt/ |
D | cptvf_algs.c | 121 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 125 if (ctx->cipher_type == AES_XTS) in create_ctx_hdr() 247 ctx->cipher_type = AES_XTS; in cvm_xts_setkey() 280 if (ctx->cipher_type == DES3_CBC) in cvm_validate_keylen() 290 u32 keylen, u8 cipher_type) in cvm_setkey() argument 295 ctx->cipher_type = cipher_type; in cvm_setkey()
|
D | cptvf_algs.h | 27 enum cipher_type { enum 101 u8 cipher_type:4; member
|
/Linux-v5.10/net/tls/ |
D | tls_main.c | 375 switch (crypto_info->cipher_type) { in do_tls_getsockopt_conf() 507 alt_crypto_info->cipher_type != crypto_info->cipher_type) { in do_tls_setsockopt_conf() 513 switch (crypto_info->cipher_type) { in do_tls_setsockopt_conf() 765 u16 version, cipher_type; in tls_get_info() local 786 cipher_type = ctx->prot_info.cipher_type; in tls_get_info() 787 if (cipher_type) { in tls_get_info() 788 err = nla_put_u16(skb, TLS_INFO_CIPHER, cipher_type); in tls_get_info()
|
/Linux-v5.10/drivers/crypto/bcm/ |
D | spu2.c | 59 static char *spu2_ciph_type_name(enum spu2_cipher_type cipher_type) in spu2_ciph_type_name() argument 61 if (cipher_type >= SPU2_CIPHER_TYPE_LAST) in spu2_ciph_type_name() 63 return spu2_cipher_type_names[cipher_type]; in spu2_ciph_type_name() 138 enum spu_cipher_type cipher_type, in spu2_cipher_xlate() argument 166 switch (cipher_type) { in spu2_cipher_xlate() 188 cipher_alg, cipher_type); in spu2_cipher_xlate() 611 enum spu2_cipher_type cipher_type, in spu2_fmd_ctrl0_write() argument 618 if ((cipher_type != SPU2_CIPHER_TYPE_NONE) && !is_inbound) in spu2_fmd_ctrl0_write() 621 ctrl0 |= ((u64)cipher_type << SPU2_CIPH_TYPE_SHIFT) | in spu2_fmd_ctrl0_write()
|
D | spu.c | 33 u32 cipher_type; in spum_dump_msg_hdr() local 78 cipher_type = (cflags & CIPHER_TYPE) >> CIPHER_TYPE_SHIFT; in spum_dump_msg_hdr() 80 cipher_alg, cipher_mode, cipher_type); in spum_dump_msg_hdr() 150 switch (cipher_type) { in spum_dump_msg_hdr() 226 switch (cipher_type) { in spum_dump_msg_hdr()
|
D | cipher.c | 326 cipher_parms.type = ctx->cipher_type; in handle_skcipher_req() 718 cipher_parms.type = ctx->cipher_type; in handle_ahash_req() 1305 cipher_parms.type = ctx->cipher_type; in handle_aead_req() 1366 hash_parms.type = (enum hash_type)ctx->cipher_type; in handle_aead_req() 1776 ctx->cipher_type = CIPHER_TYPE_DES; in des_setkey() 1790 ctx->cipher_type = CIPHER_TYPE_3DES; in threedes_setkey() 1805 ctx->cipher_type = CIPHER_TYPE_AES128; in aes_setkey() 1808 ctx->cipher_type = CIPHER_TYPE_AES192; in aes_setkey() 1811 ctx->cipher_type = CIPHER_TYPE_AES256; in aes_setkey() 1873 cipher_parms.type = ctx->cipher_type; in skcipher_setkey() [all …]
|
D | cipher.h | 196 enum spu_cipher_type cipher_type; member
|
/Linux-v5.10/drivers/crypto/cavium/nitrox/ |
D | nitrox_skcipher.c | 173 enum flexi_cipher cipher_type; in nitrox_skcipher_setkey() local 177 cipher_type = flexi_cipher_type(name); in nitrox_skcipher_setkey() 178 if (unlikely(cipher_type == CIPHER_INVALID)) { in nitrox_skcipher_setkey() 187 flags->w0.cipher_type = cipher_type; in nitrox_skcipher_setkey()
|
D | nitrox_req.h | 154 u64 cipher_type : 4; member 172 u64 cipher_type : 4;
|
/Linux-v5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_main.c | 496 int cipher_type; in do_chtls_setsockopt() local 523 switch (tmp_crypto_info.cipher_type) { in do_chtls_setsockopt() 540 cipher_type = TLS_CIPHER_AES_GCM_128; in do_chtls_setsockopt() 557 cipher_type = TLS_CIPHER_AES_GCM_256; in do_chtls_setsockopt() 564 rc = chtls_setkey(csk, keylen, optname, cipher_type); in do_chtls_setsockopt()
|
D | chtls_hw.c | 212 int cipher_type) in chtls_key_info() argument 227 switch (cipher_type) { in chtls_key_info() 317 u32 optname, int cipher_type) in chtls_setkey() argument 382 ret = chtls_key_info(csk, kctx, keylen, optname, cipher_type); in chtls_setkey()
|
/Linux-v5.10/tools/include/uapi/linux/ |
D | tls.h | 67 __u16 cipher_type; member
|
/Linux-v5.10/include/uapi/linux/ |
D | tls.h | 85 __u16 cipher_type; member
|
/Linux-v5.10/fs/cifs/ |
D | cifs_ioctl.h | 62 __u16 cipher_type; member
|
D | ioctl.c | 289 pkey_inf.cipher_type = in cifs_ioctl() 290 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl()
|
D | smb2transport.c | 852 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate() 853 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate() 866 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate() 867 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/accel/ |
D | tls.c | 95 switch (crypto_info->cipher_type) { in mlx5_ktls_create_key()
|
D | tls.h | 71 switch (crypto_info->cipher_type) { in mlx5e_ktls_type_check()
|
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/crypto/ |
D | tls.c | 244 nfp_net_cipher_supported(struct nfp_net *nn, u16 cipher_type, in nfp_net_cipher_supported() argument 249 switch (cipher_type) { in nfp_net_cipher_supported() 286 if (!nfp_net_cipher_supported(nn, crypto_info->cipher_type, direction)) in nfp_net_tls_add()
|
/Linux-v5.10/drivers/net/wireless/atmel/ |
D | atmel.c | 748 int cipher_type, cipher_length; in tx_update_descriptor() local 750 cipher_type = priv->group_cipher_suite; in tx_update_descriptor() 751 if (cipher_type == CIPHER_SUITE_WEP_64 || in tx_update_descriptor() 752 cipher_type == CIPHER_SUITE_WEP_128) in tx_update_descriptor() 754 else if (cipher_type == CIPHER_SUITE_TKIP) in tx_update_descriptor() 758 cipher_type = priv->pairwise_cipher_suite; in tx_update_descriptor() 761 cipher_type = CIPHER_SUITE_NONE; in tx_update_descriptor() 765 cipher_type = priv->pairwise_cipher_suite; in tx_update_descriptor() 766 if (cipher_type == CIPHER_SUITE_WEP_64 || in tx_update_descriptor() 767 cipher_type == CIPHER_SUITE_WEP_128) in tx_update_descriptor() [all …]
|
/Linux-v5.10/Documentation/networking/ |
D | tls.rst | 37 unsigned short cipher_type; 52 crypto_info.info.cipher_type = TLS_CIPHER_AES_GCM_128;
|
/Linux-v5.10/include/net/ |
D | tls.h | 60 #define TLS_CRYPTO_INFO_READY(info) ((info)->cipher_type) 225 u16 cipher_type; member
|
/Linux-v5.10/tools/testing/selftests/net/ |
D | tls.c | 131 tls12.info.cipher_type = TLS_CIPHER_AES_GCM_128; in FIXTURE_SETUP() 810 tls12.info.cipher_type = TLS_CIPHER_AES_GCM_128; in TEST_F() 1230 tls12.info.cipher_type = TLS_CIPHER_AES_GCM_256; in TEST() 1284 tls12.info.cipher_type = TLS_CIPHER_AES_GCM_256; in TEST()
|