Home
last modified time | relevance | path

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

12

/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c140 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 …]
H A Dotx2_cptvf_algs.h123 u8 cipher_type; member
173 u8 cipher_type; member
/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/server/
H A Dauth.c743 (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()
1137 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
1138 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
1147 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
1148 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
1153 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in ksmbd_crypt_message()
[all …]
H A Dconnection.h103 __le16 cipher_type; member
/linux/drivers/crypto/bcm/
H A 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()
/linux/fs/smb/client/
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/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()
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/net/tls/
H A Dtls_device_fallback.c66 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/tools/include/uapi/linux/
H A Dtls.h67 __u16 cipher_type; member
/linux/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()
/linux/include/uapi/linux/
H A Dtls.h122 __u16 cipher_type; member
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_ktls.c43 switch (crypto_info->cipher_type) { in fun_ktls_add()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsetget_sockopt.c121 aes128.info.cipher_type = TLS_CIPHER_AES_GCM_128; in test_ktls()

12