Home
last modified time | relevance | path

Searched refs:cipher_type (Results 1 – 25 of 46) sorted by relevance

12

/linux-6.15/tools/testing/selftests/net/
H A Dtls.c53 switch (cipher_type) { in tls_crypto_info_init()
57 tls12->chacha20.info.cipher_type = cipher_type; in tls_crypto_info_init()
62 tls12->aes128.info.cipher_type = cipher_type; in tls_crypto_info_init()
67 tls12->sm4gcm.info.cipher_type = cipher_type; in tls_crypto_info_init()
72 tls12->sm4ccm.info.cipher_type = cipher_type; in tls_crypto_info_init()
77 tls12->aesccm128.info.cipher_type = cipher_type; in tls_crypto_info_init()
82 tls12->aesgcm256.info.cipher_type = cipher_type; in tls_crypto_info_init()
87 tls12->ariagcm128.info.cipher_type = cipher_type; in tls_crypto_info_init()
92 tls12->ariagcm256.info.cipher_type = cipher_type; in tls_crypto_info_init()
1616 EXPECT_EQ(get.crypto_info.cipher_type, variant->cipher_type); in TEST_F()
[all …]
/linux-6.15/net/tls/
H A Dtls.h74 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()
315 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) in tls_advance_record_sn()
326 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) { in tls_xor_iv_with_seq()
341 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) { in tls_fill_prepend()
H A Dtls_main.c481 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_getsockopt_conf()
595 switch (crypto_info->cipher_type) { in validate_crypto_info()
606 alt_crypto_info->cipher_type != crypto_info->cipher_type) in validate_crypto_info()
664 crypto_info->cipher_type != old_crypto_info->cipher_type) in do_tls_setsockopt_conf()
672 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_setsockopt_conf()
1068 u16 version, cipher_type; in tls_get_info() local
1089 cipher_type = ctx->prot_info.cipher_type; in tls_get_info()
1090 if (cipher_type) { in tls_get_info()
1091 err = nla_put_u16(skb, TLS_INFO_CIPHER, cipher_type); in tls_get_info()
H A Dtls_device_fallback.c55 cipher_desc = get_cipher_desc(prot->cipher_type); in tls_enc_record()
289 get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in fill_sg_out()
317 cipher_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in tls_enc_skb()
446 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_sw_fallback_init()
/linux-6.15/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c140 if (ctx->cipher_type == OTX2_CPT_AES_CBC || in output_iv_copyback()
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
479 if (cipher_type == OTX2_CPT_AES_CBC || cipher_type == OTX2_CPT_AES_ECB) in cpt_aes_setkey()
485 ctx->cipher_type = cipher_type; in cpt_aes_setkey()
599 ctx->cipher_type = cipher_type; in cpt_aead_init()
654 switch (ctx->cipher_type) { in cpt_aead_init()
[all …]
H A Dotx2_cptvf_algs.h123 u8 cipher_type; member
173 u8 cipher_type; member
/linux-6.15/drivers/crypto/cavium/cpt/
H A Dcptvf_algs.c121 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()
H A Dcptvf_algs.h27 enum cipher_type { enum
101 u8 cipher_type:4; member
/linux-6.15/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c157 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()
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
458 ctx->cipher_type = cipher_type; in cpt_aes_setkey()
510 ctx->cipher_type = cipher_type; in cpt_aead_init()
[all …]
H A Dotx_cptvf_algs.h132 u8 cipher_type; member
177 u8 cipher_type; member
/linux-6.15/fs/smb/server/
H A Dauth.c756 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in generate_key()
878 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_smb3encryptionkey()
879 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) { in generate_smb3encryptionkey()
1149 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
1150 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
1159 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
1160 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
1165 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in ksmbd_crypt_message()
1166 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
1206 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
[all …]
/linux-6.15/fs/smb/client/
H A Dsmb2transport.c393 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_key()
394 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_key()
505 cifs_dbg(VFS, "Cipher type %d\n", server->cipher_type); in generate_smb3signingkey()
510 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_smb3signingkey()
511 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_smb3signingkey()
943 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate()
944 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
957 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate()
958 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
H A Dcifs_ioctl.h63 __u16 cipher_type; member
81 __u16 cipher_type; member
H A Dioctl.c292 switch (ses->server->cipher_type) { in cifs_dump_full_key()
316 out.cipher_type = le16_to_cpu(ses->server->cipher_type); in cifs_dump_full_key()
505 pkey_inf.cipher_type = in cifs_ioctl()
506 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl()
/linux-6.15/drivers/crypto/bcm/
H A Dspu2.c60 static char *spu2_ciph_type_name(enum spu2_cipher_type cipher_type) in spu2_ciph_type_name() argument
62 if (cipher_type >= SPU2_CIPHER_TYPE_LAST) in spu2_ciph_type_name()
64 return spu2_cipher_type_names[cipher_type]; in spu2_ciph_type_name()
139 enum spu_cipher_type cipher_type, in spu2_cipher_xlate() argument
167 switch (cipher_type) { in spu2_cipher_xlate()
189 cipher_alg, cipher_type); in spu2_cipher_xlate()
613 enum spu2_cipher_type cipher_type, in spu2_fmd_ctrl0_write() argument
620 if ((cipher_type != SPU2_CIPHER_TYPE_NONE) && !is_inbound) in spu2_fmd_ctrl0_write()
623 ctrl0 |= ((u64)cipher_type << SPU2_CIPH_TYPE_SHIFT) | in spu2_fmd_ctrl0_write()
H A Dspu.c33 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()
H A Dcipher.c327 cipher_parms.type = ctx->cipher_type; in handle_skcipher_req()
717 cipher_parms.type = ctx->cipher_type; in handle_ahash_req()
1303 cipher_parms.type = ctx->cipher_type; in handle_aead_req()
1774 ctx->cipher_type = CIPHER_TYPE_DES; in des_setkey()
1788 ctx->cipher_type = CIPHER_TYPE_3DES; in threedes_setkey()
1803 ctx->cipher_type = CIPHER_TYPE_AES128; in aes_setkey()
1806 ctx->cipher_type = CIPHER_TYPE_AES192; in aes_setkey()
1809 ctx->cipher_type = CIPHER_TYPE_AES256; in aes_setkey()
1871 cipher_parms.type = ctx->cipher_type; in skcipher_setkey()
2757 ctx->cipher_type = CIPHER_TYPE_DES; in aead_authenc_setkey()
[all …]
/linux-6.15/drivers/crypto/cavium/nitrox/
H A Dnitrox_skcipher.c173 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.15/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_txrx.c35 switch (crypto_info->crypto_info.cipher_type) { in fill_static_params()
52 crypto_info->crypto_info.cipher_type); in fill_static_params()
H A Dktls_rx.c376 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.15/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_main.c497 int cipher_type; in do_chtls_setsockopt() local
524 switch (tmp_crypto_info.cipher_type) { in do_chtls_setsockopt()
541 cipher_type = TLS_CIPHER_AES_GCM_128; in do_chtls_setsockopt()
558 cipher_type = TLS_CIPHER_AES_GCM_256; in do_chtls_setsockopt()
565 rc = chtls_setkey(csk, keylen, optname, cipher_type); in do_chtls_setsockopt()
H A Dchtls_hw.c244 int cipher_type) in chtls_key_info() argument
259 switch (cipher_type) { in chtls_key_info()
349 u32 optname, int cipher_type) in chtls_setkey() argument
414 ret = chtls_key_info(csk, kctx, keylen, optname, cipher_type); in chtls_setkey()
/linux-6.15/tools/include/uapi/linux/
H A Dtls.h67 __u16 cipher_type; member
/linux-6.15/include/net/
H A Dtls.h60 #define TLS_CRYPTO_INFO_READY(info) ((info)->cipher_type)
210 u16 cipher_type; member
/linux-6.15/drivers/net/ethernet/netronome/nfp/crypto/
H A Dtls.c244 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()

12