Home
last modified time | relevance | path

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

12

/linux/fs/smb/server/
H A Dauth.c555 (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_key()
556 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in generate_key()
651 ksmbd_debug(AUTH, "Cipher type %d\n", conn->cipher_type); in generate_smb3encryptionkey()
913 u16 cipher = le16_to_cpu(conn->cipher_type); in ksmbd_crypt_rdma()
926 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_rdma()
927 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) { in ksmbd_crypt_rdma()
950 tfm = (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_rdma()
951 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) ? in ksmbd_crypt_rdma()
953 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in ksmbd_crypt_rdma()
954 conn->cipher_type in ksmbd_crypt_rdma()
[all...]
H A Dconnection.h143 __le16 cipher_type;
138 __le16 cipher_type; global() member
/linux/tools/testing/selftests/net/
H A Dtls.c47 static void tls_crypto_info_init(uint16_t tls_version, uint16_t cipher_type, in tls_crypto_info_init() argument
54 switch (cipher_type) { in tls_crypto_info_init()
58 tls12->chacha20.info.cipher_type = cipher_type; in tls_crypto_info_init()
63 tls12->aes128.info.cipher_type = cipher_type; in tls_crypto_info_init()
68 tls12->sm4gcm.info.cipher_type = cipher_type; in tls_crypto_info_init()
73 tls12->sm4ccm.info.cipher_type = cipher_type; in tls_crypto_info_init()
312 uint16_t cipher_type; FIXTURE_VARIANT() local
[all...]
H A Dgetsockopt_iter.c606 .info.cipher_type = TLS_CIPHER_AES_GCM_128, in TEST_F()
619 ASSERT_EQ(TLS_CIPHER_AES_GCM_128, base.cipher_type); in TEST_F()
624 ASSERT_EQ(TLS_CIPHER_AES_GCM_128, full.info.cipher_type); in TEST_F()
/linux/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()
318 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) in tls_advance_record_sn()
329 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) { in tls_xor_iv_with_seq()
344 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) { in tls_fill_prepend()
H A Dtls_main.c465 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_getsockopt_conf()
603 switch (crypto_info->cipher_type) { in validate_crypto_info()
614 alt_crypto_info->cipher_type != crypto_info->cipher_type) in validate_crypto_info()
683 crypto_info->cipher_type != old_crypto_info->cipher_type) in do_tls_setsockopt_conf()
691 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_setsockopt_conf()
1125 u16 version, cipher_type; in tls_get_info()
1146 cipher_type = ctx->prot_info.cipher_type; in tls_get_info()
1106 u16 version, cipher_type; tls_get_info() local
[all...]
H A Dtls_device_fallback.c55 cipher_desc = get_cipher_desc(prot->cipher_type); in tls_enc_record()
286 get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in fill_sg_out()
314 cipher_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in tls_enc_skb()
443 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_sw_fallback_init()
H A Dtls_sw.c554 switch (prot->cipher_type) { in tls_do_encryption()
1341 switch (prot->cipher_type) { in tls_decrypt_sg()
1354 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) { in tls_decrypt_sg()
2253 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) in tls_rx_msg_maybe_announce()
2544 prot->cipher_type = crypto_info->cipher_type; in tls_set_sw_offload()
2609 cipher_desc = get_cipher_desc(src_crypto_info->cipher_type); in tls_set_sw_offload()
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c158 if (ctx->cipher_type == OTX_CPT_AES_CBC || in output_iv_copyback()
159 ctx->cipher_type == OTX_CPT_DES3_CBC) { in output_iv_copyback()
258 if ((ctx->cipher_type == OTX_CPT_AES_CBC || in create_ctx_hdr()
259 ctx->cipher_type == OTX_CPT_DES3_CBC) && in create_ctx_hdr()
274 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr()
278 if (ctx->cipher_type == OTX_CPT_AES_XTS) in create_ctx_hdr()
409 ctx->cipher_type = OTX_CPT_AES_XTS; in otx_cpt_skcipher_xts_setkey()
425 u32 keylen, u8 cipher_type) in cpt_des_setkey()
433 ctx->cipher_type = cipher_type; in cpt_des_setkey()
424 cpt_des_setkey(struct crypto_skcipher * tfm,const u8 * key,u32 keylen,u8 cipher_type) cpt_des_setkey() argument
440 cpt_aes_setkey(struct crypto_skcipher * tfm,const u8 * key,u32 keylen,u8 cipher_type) cpt_aes_setkey() argument
506 cpt_aead_init(struct crypto_aead * tfm,u8 cipher_type,u8 mac_type) cpt_aead_init() argument
[all...]
H A Dotx_cptvf_algs.h132 u8 cipher_type; member
177 u8 cipher_type; member
/linux/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/fs/smb/client/
H A Dcifs_ioctl.h63 __u16 cipher_type; member
81 __u16 cipher_type; member
/linux/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()
H A Dnitrox_req.h155 u64 cipher_type : 4; member
173 u64 cipher_type : 4;
/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.h123 u8 cipher_type; member
173 u8 cipher_type; member
/linux/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.h39 switch (crypto_info->cipher_type) { in mlx5e_ktls_type_check()
H A Dktls_tx.c472 switch (crypto_info->cipher_type) { in mlx5e_ktls_add_tx()
483 crypto_info->cipher_type); in mlx5e_ktls_add_tx()
686 switch (priv_tx->crypto_info.crypto_info.cipher_type) { in tx_post_resync_params()
703 priv_tx->crypto_info.crypto_info.cipher_type); in tx_post_resync_params()
H A Dktls.c18 switch (crypto_info->cipher_type) { in mlx5_ktls_create_key()
/linux/tools/include/uapi/linux/
H A Dtls.h67 __u16 cipher_type; member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_ktls.c34 crypto_rx.info.cipher_type = TLS_CIPHER_AES_GCM_128; in init_ktls_pairs()
35 crypto_tx.info.cipher_type = TLS_CIPHER_AES_GCM_128; in init_ktls_pairs()
124 .cipher_type = TLS_CIPHER_AES_GCM_128, in fmt_test_name()
H A Dsetget_sockopt.c121 aes128.info.cipher_type = TLS_CIPHER_AES_GCM_128; in test_ktls()
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_ktls.c43 switch (crypto_info->cipher_type) { in fun_ktls_add()
/linux/drivers/crypto/bcm/
H A Dcipher.h197 enum spu_cipher_type cipher_type; member

12