/linux-6.12.1/tools/testing/selftests/net/ |
D | tls.c | 46 static void tls_crypto_info_init(uint16_t tls_version, uint16_t cipher_type, in tls_crypto_info_init() argument 51 switch (cipher_type) { in tls_crypto_info_init() 55 tls12->chacha20.info.cipher_type = cipher_type; in tls_crypto_info_init() 60 tls12->aes128.info.cipher_type = cipher_type; in tls_crypto_info_init() 65 tls12->sm4gcm.info.cipher_type = cipher_type; in tls_crypto_info_init() 70 tls12->sm4ccm.info.cipher_type = cipher_type; in tls_crypto_info_init() 75 tls12->aesccm128.info.cipher_type = cipher_type; in tls_crypto_info_init() 80 tls12->aesgcm256.info.cipher_type = cipher_type; in tls_crypto_info_init() 85 tls12->ariagcm128.info.cipher_type = cipher_type; in tls_crypto_info_init() 90 tls12->ariagcm256.info.cipher_type = cipher_type; in tls_crypto_info_init() [all …]
|
/linux-6.12.1/net/tls/ |
D | tls.h | 74 static inline const struct tls_cipher_desc *get_cipher_desc(u16 cipher_type) in get_cipher_desc() argument 76 if (cipher_type < TLS_CIPHER_MIN || cipher_type > TLS_CIPHER_MAX) in get_cipher_desc() 79 return &tls_cipher_desc[cipher_type - TLS_CIPHER_MIN]; in get_cipher_desc() 314 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) in tls_advance_record_sn() 325 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) { in tls_xor_iv_with_seq() 340 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) { in tls_fill_prepend()
|
D | tls_main.c | 480 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_getsockopt_conf() 594 switch (crypto_info->cipher_type) { in validate_crypto_info() 605 alt_crypto_info->cipher_type != crypto_info->cipher_type) in validate_crypto_info() 650 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_setsockopt_conf() 1019 u16 version, cipher_type; in tls_get_info() local 1040 cipher_type = ctx->prot_info.cipher_type; in tls_get_info() 1041 if (cipher_type) { in tls_get_info() 1042 err = nla_put_u16(skb, TLS_INFO_CIPHER, cipher_type); in tls_get_info()
|
D | tls_device_fallback.c | 66 cipher_desc = get_cipher_desc(prot->cipher_type); in tls_enc_record() 308 get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in fill_sg_out() 336 cipher_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in tls_enc_skb() 465 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_sw_fallback_init()
|
/linux-6.12.1/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptvf_algs.c | 140 if (ctx->cipher_type == OTX2_CPT_AES_CBC || in output_iv_copyback() 141 ctx->cipher_type == OTX2_CPT_DES3_CBC) { in output_iv_copyback() 243 if ((ctx->cipher_type == OTX2_CPT_AES_CBC || in create_ctx_hdr() 244 ctx->cipher_type == OTX2_CPT_DES3_CBC) && in create_ctx_hdr() 259 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 263 if (ctx->cipher_type == OTX2_CPT_AES_XTS) in create_ctx_hdr() 427 ctx->cipher_type = OTX2_CPT_AES_XTS; in otx2_cpt_skcipher_xts_setkey() 445 u32 keylen, u8 cipher_type) in cpt_des_setkey() argument 453 ctx->cipher_type = cipher_type; in cpt_des_setkey() 462 u32 keylen, u8 cipher_type) in cpt_aes_setkey() argument [all …]
|
D | otx2_cptvf_algs.h | 123 u8 cipher_type; member 173 u8 cipher_type; member
|
/linux-6.12.1/drivers/crypto/marvell/octeontx/ |
D | otx_cptvf_algs.c | 157 if (ctx->cipher_type == OTX_CPT_AES_CBC || in output_iv_copyback() 158 ctx->cipher_type == OTX_CPT_DES3_CBC) { in output_iv_copyback() 257 if ((ctx->cipher_type == OTX_CPT_AES_CBC || in create_ctx_hdr() 258 ctx->cipher_type == OTX_CPT_DES3_CBC) && in create_ctx_hdr() 273 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 277 if (ctx->cipher_type == OTX_CPT_AES_XTS) in create_ctx_hdr() 408 ctx->cipher_type = OTX_CPT_AES_XTS; in otx_cpt_skcipher_xts_setkey() 424 u32 keylen, u8 cipher_type) in cpt_des_setkey() argument 432 ctx->cipher_type = cipher_type; in cpt_des_setkey() 440 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-6.12.1/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() 246 ctx->cipher_type = AES_XTS; in cvm_xts_setkey() 279 if (ctx->cipher_type == DES3_CBC) in cvm_validate_keylen() 289 u32 keylen, u8 cipher_type) in cvm_setkey() argument 293 ctx->cipher_type = cipher_type; in cvm_setkey()
|
D | cptvf_algs.h | 27 enum cipher_type { enum 101 u8 cipher_type:4; member
|
/linux-6.12.1/fs/smb/server/ |
D | auth.c | 743 (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_key() 744 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in generate_key() 862 ksmbd_debug(AUTH, "Cipher type %d\n", conn->cipher_type); in generate_smb3encryptionkey() 866 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_smb3encryptionkey() 867 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) { in generate_smb3encryptionkey() 1134 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message() 1135 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message() 1144 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message() 1145 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message() 1150 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in ksmbd_crypt_message() [all …]
|
/linux-6.12.1/fs/smb/client/ |
D | smb2transport.c | 369 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_key() 370 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_key() 481 cifs_dbg(VFS, "Cipher type %d\n", server->cipher_type); in generate_smb3signingkey() 486 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_smb3signingkey() 487 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_smb3signingkey() 919 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate() 920 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate() 933 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate() 934 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
|
D | cifs_ioctl.h | 63 __u16 cipher_type; member 81 __u16 cipher_type; member
|
D | ioctl.c | 295 switch (ses->server->cipher_type) { in cifs_dump_full_key() 319 out.cipher_type = le16_to_cpu(ses->server->cipher_type); in cifs_dump_full_key() 508 pkey_inf.cipher_type = in cifs_ioctl() 509 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl()
|
/linux-6.12.1/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() 612 enum spu2_cipher_type cipher_type, in spu2_fmd_ctrl0_write() argument 619 if ((cipher_type != SPU2_CIPHER_TYPE_NONE) && !is_inbound) in spu2_fmd_ctrl0_write() 622 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() 716 cipher_parms.type = ctx->cipher_type; in handle_ahash_req() 1302 cipher_parms.type = ctx->cipher_type; in handle_aead_req() 1363 hash_parms.type = (enum hash_type)ctx->cipher_type; in handle_aead_req() 1773 ctx->cipher_type = CIPHER_TYPE_DES; in des_setkey() 1787 ctx->cipher_type = CIPHER_TYPE_3DES; in threedes_setkey() 1802 ctx->cipher_type = CIPHER_TYPE_AES128; in aes_setkey() 1805 ctx->cipher_type = CIPHER_TYPE_AES192; in aes_setkey() 1808 ctx->cipher_type = CIPHER_TYPE_AES256; in aes_setkey() 1870 cipher_parms.type = ctx->cipher_type; in skcipher_setkey() [all …]
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ktls_txrx.c | 35 switch (crypto_info->crypto_info.cipher_type) { in fill_static_params() 52 crypto_info->crypto_info.cipher_type); in fill_static_params()
|
D | ktls_rx.c | 376 switch (priv_rx->crypto_info.crypto_info.cipher_type) { in resync_handle_seq_match() 395 priv_rx->crypto_info.crypto_info.cipher_type); in resync_handle_seq_match() 622 switch (crypto_info->cipher_type) { in mlx5e_ktls_add_rx() 633 crypto_info->cipher_type); in mlx5e_ktls_add_rx()
|
/linux-6.12.1/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 | 253 int cipher_type) in chtls_key_info() argument 268 switch (cipher_type) { in chtls_key_info() 358 u32 optname, int cipher_type) in chtls_setkey() argument 423 ret = chtls_key_info(csk, kctx, keylen, optname, cipher_type); in chtls_setkey()
|
/linux-6.12.1/tools/include/uapi/linux/ |
D | tls.h | 67 __u16 cipher_type; member
|
/linux-6.12.1/include/net/ |
D | tls.h | 60 #define TLS_CRYPTO_INFO_READY(info) ((info)->cipher_type) 207 u16 cipher_type; member
|
/linux-6.12.1/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()
|