Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/net/
H A Dtls.c46 static void tls_crypto_info_init(uint16_t tls_version, uint16_t cipher_type, in tls_crypto_info_init() argument
53 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()
311 uint16_t cipher_type; FIXTURE_VARIANT() local
[all...]
/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()
317 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) in tls_advance_record_sn()
328 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) { in tls_xor_iv_with_seq()
343 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) { in tls_fill_prepend()
H A Dtls_main.c478 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_getsockopt_conf()
617 switch (crypto_info->cipher_type) { in validate_crypto_info()
628 alt_crypto_info->cipher_type != crypto_info->cipher_type) in validate_crypto_info()
686 crypto_info->cipher_type != old_crypto_info->cipher_type) in do_tls_setsockopt_conf()
694 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_setsockopt_conf()
1122 u16 version, cipher_type; in tls_get_info() local
1143 cipher_type = ctx->prot_info.cipher_type; in tls_get_info()
1144 if (cipher_type) { in tls_get_info()
1145 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_in()
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_validate_xmit_skb_sw()
/linux/fs/smb/server/
H A Dauth.c558 (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_key()
559 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in generate_key()
654 ksmbd_debug(AUTH, "Cipher type %d\n", conn->cipher_type); in generate_smb3encryptionkey()
658 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_smb3encryptionkey()
659 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) { in generate_smb3encryptionkey()
866 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
867 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
876 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
877 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
882 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in ksmbd_crypt_message()
[all …]
/linux/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()
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 …]
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 Dsmb2transport.c288 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_key()
289 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_key()
389 cifs_dbg(VFS, "Cipher type %d\n", server->cipher_type); in generate_smb3signingkey()
394 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_smb3signingkey()
395 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_smb3signingkey()
820 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate()
821 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
834 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate()
835 (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/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_rx.c380 switch (priv_rx->crypto_info.crypto_info.cipher_type) { in resync_handle_seq_match()
399 priv_rx->crypto_info.crypto_info.cipher_type); in resync_handle_seq_match()
650 switch (crypto_info->cipher_type) { in mlx5e_ktls_add_rx()
661 crypto_info->cipher_type); in mlx5e_ktls_add_rx()
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/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()
/linux/tools/include/uapi/linux/
H A Dtls.h67 __u16 cipher_type; member
/linux/include/net/
H A Dtls.h62 #define TLS_CRYPTO_INFO_READY(info) ((info)->cipher_type)
212 u16 cipher_type; member
/linux/include/uapi/linux/
H A Dtls.h123 __u16 cipher_type;
122 __u16 cipher_type; global() member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_ktls.c35 crypto_rx.info.cipher_type = TLS_CIPHER_AES_GCM_128; in init_ktls_pairs()
36 crypto_tx.info.cipher_type = TLS_CIPHER_AES_GCM_128; in init_ktls_pairs()

12