Home
last modified time | relevance | path

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

12

/Linux-v6.1/tools/testing/selftests/net/
Dtls.c40 static void tls_crypto_info_init(uint16_t tls_version, uint16_t cipher_type, in tls_crypto_info_init() argument
45 switch (cipher_type) { in tls_crypto_info_init()
49 tls12->chacha20.info.cipher_type = cipher_type; in tls_crypto_info_init()
54 tls12->aes128.info.cipher_type = cipher_type; in tls_crypto_info_init()
59 tls12->sm4gcm.info.cipher_type = cipher_type; in tls_crypto_info_init()
64 tls12->sm4ccm.info.cipher_type = cipher_type; in tls_crypto_info_init()
69 tls12->aesccm128.info.cipher_type = cipher_type; in tls_crypto_info_init()
74 tls12->aesgcm256.info.cipher_type = cipher_type; in tls_crypto_info_init()
237 uint16_t cipher_type; in FIXTURE_VARIANT() local
244 .cipher_type = TLS_CIPHER_AES_GCM_128,
[all …]
/Linux-v6.1/drivers/crypto/marvell/octeontx2/
Dotx2_cptvf_algs.c138 if (ctx->cipher_type == OTX2_CPT_AES_CBC || in output_iv_copyback()
139 ctx->cipher_type == OTX2_CPT_DES3_CBC) { in output_iv_copyback()
241 if ((ctx->cipher_type == OTX2_CPT_AES_CBC || in create_ctx_hdr()
242 ctx->cipher_type == OTX2_CPT_DES3_CBC) && in create_ctx_hdr()
257 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr()
261 if (ctx->cipher_type == OTX2_CPT_AES_XTS) in create_ctx_hdr()
422 ctx->cipher_type = OTX2_CPT_AES_XTS; in otx2_cpt_skcipher_xts_setkey()
440 u32 keylen, u8 cipher_type) in cpt_des_setkey() argument
448 ctx->cipher_type = cipher_type; in cpt_des_setkey()
457 u32 keylen, u8 cipher_type) in cpt_aes_setkey() argument
[all …]
Dotx2_cptvf_algs.h122 u8 cipher_type; member
168 u8 cipher_type; member
/Linux-v6.1/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.c156 if (ctx->cipher_type == OTX_CPT_AES_CBC || in output_iv_copyback()
157 ctx->cipher_type == OTX_CPT_DES3_CBC) { in output_iv_copyback()
256 if ((ctx->cipher_type == OTX_CPT_AES_CBC || in create_ctx_hdr()
257 ctx->cipher_type == OTX_CPT_DES3_CBC) && in create_ctx_hdr()
272 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr()
276 if (ctx->cipher_type == OTX_CPT_AES_XTS) in create_ctx_hdr()
407 ctx->cipher_type = OTX_CPT_AES_XTS; in otx_cpt_skcipher_xts_setkey()
423 u32 keylen, u8 cipher_type) in cpt_des_setkey() argument
431 ctx->cipher_type = cipher_type; in cpt_des_setkey()
439 u32 keylen, u8 cipher_type) in cpt_aes_setkey() argument
[all …]
Dotx_cptvf_algs.h132 u8 cipher_type; member
177 u8 cipher_type; member
/Linux-v6.1/net/tls/
Dtls_device_fallback.c65 switch (prot->cipher_type) { in tls_enc_record()
72 cipher_sz = &tls_cipher_size_desc[prot->cipher_type]; in tls_enc_record()
313 &tls_cipher_size_desc[tls_ctx->crypto_send.info.cipher_type]; in fill_sg_out()
341 switch (tls_ctx->crypto_send.info.cipher_type) { in tls_enc_skb()
351 cipher_sz = &tls_cipher_size_desc[tls_ctx->crypto_send.info.cipher_type]; in tls_enc_skb()
487 switch (crypto_info->cipher_type) { in tls_sw_fallback_init()
498 cipher_sz = &tls_cipher_size_desc[crypto_info->cipher_type]; in tls_sw_fallback_init()
Dtls_main.c396 switch (crypto_info->cipher_type) { in do_tls_getsockopt_conf()
710 alt_crypto_info->cipher_type != crypto_info->cipher_type) { in do_tls_setsockopt_conf()
716 switch (crypto_info->cipher_type) { in do_tls_setsockopt_conf()
1109 u16 version, cipher_type; in tls_get_info() local
1130 cipher_type = ctx->prot_info.cipher_type; in tls_get_info()
1131 if (cipher_type) { in tls_get_info()
1132 err = nla_put_u16(skb, TLS_INFO_CIPHER, cipher_type); in tls_get_info()
Dtls.h256 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) in tls_advance_record_sn()
267 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) { in tls_xor_iv_with_seq()
282 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) { in tls_fill_prepend()
/Linux-v6.1/drivers/crypto/cavium/cpt/
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()
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()
Dcptvf_algs.h27 enum cipher_type { enum
101 u8 cipher_type:4; member
/Linux-v6.1/fs/ksmbd/
Dauth.c729 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_key()
730 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in generate_key()
848 ksmbd_debug(AUTH, "Cipher type %d\n", conn->cipher_type); in generate_smb3encryptionkey()
852 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_smb3encryptionkey()
853 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) { in generate_smb3encryptionkey()
1113 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
1114 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
1123 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
1124 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
1129 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in ksmbd_crypt_message()
[all …]
/Linux-v6.1/fs/cifs/
Dsmb2transport.c352 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_key()
353 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_key()
455 cifs_dbg(VFS, "Cipher type %d\n", server->cipher_type); in generate_smb3signingkey()
460 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_smb3signingkey()
461 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_smb3signingkey()
893 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate()
894 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
907 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate()
908 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
Dcifs_ioctl.h58 __u16 cipher_type; member
76 __u16 cipher_type; member
Dioctl.c256 switch (ses->server->cipher_type) { in cifs_dump_full_key()
280 out.cipher_type = le16_to_cpu(ses->server->cipher_type); in cifs_dump_full_key()
444 pkey_inf.cipher_type = in cifs_ioctl()
445 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl()
/Linux-v6.1/drivers/crypto/bcm/
Dspu2.c59 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()
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()
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()
1364 hash_parms.type = (enum hash_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()
[all …]
/Linux-v6.1/drivers/crypto/cavium/nitrox/
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-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
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()
Dktls_rx.c375 switch (priv_rx->crypto_info.crypto_info.cipher_type) { in resync_handle_seq_match()
394 priv_rx->crypto_info.crypto_info.cipher_type); in resync_handle_seq_match()
630 switch (crypto_info->cipher_type) { in mlx5e_ktls_add_rx()
641 crypto_info->cipher_type); in mlx5e_ktls_add_rx()
Dktls.h35 switch (crypto_info->cipher_type) { in mlx5e_ktls_type_check()
/Linux-v6.1/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_main.c496 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()
Dchtls_hw.c253 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-v6.1/tools/include/uapi/linux/
Dtls.h67 __u16 cipher_type; member
/Linux-v6.1/include/net/
Dtls.h70 #define TLS_CRYPTO_INFO_READY(info) ((info)->cipher_type)
224 u16 cipher_type; member

12