Searched refs:cipher_type (Results 1 - 25 of 45) sorted by last modified time

12

/linux-master/fs/smb/client/
H A Dcifsglob.h779 __le16 cipher_type; member in struct:TCP_Server_Info
H A Dsmb2pdu.c863 server->cipher_type = 0;
874 server->cipher_type = ctxt->Ciphers[0];
1231 server->cipher_type = SMB2_ENCRYPTION_AES128_CCM;
H A Dsmb2ops.c4085 struct smb_rqst *old_rq, __le16 cipher_type)
4094 if ((cipher_type == SMB2_ENCRYPTION_AES128_GCM) ||
4095 (cipher_type == SMB2_ENCRYPTION_AES256_GCM))
4254 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) ||
4255 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM))
4281 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) ||
4282 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM))
4402 fill_transform_hdr(tr_hdr, orig_len, old_rq, server->cipher_type);
4084 fill_transform_hdr(struct smb2_transform_hdr *tr_hdr, unsigned int orig_len, struct smb_rqst *old_rq, __le16 cipher_type) argument
H A Dsmb2transport.c369 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) ||
370 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) {
481 cifs_dbg(VFS, "Cipher type %d\n", server->cipher_type);
486 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) ||
487 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) {
919 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) ||
920 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM))
933 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) ||
934 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM))
H A Dioctl.c275 switch (ses->server->cipher_type) {
299 out.cipher_type = le16_to_cpu(ses->server->cipher_type);
488 pkey_inf.cipher_type =
489 le16_to_cpu(tcon->ses->server->cipher_type);
H A Dcifs_debug.c525 if (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)
/linux-master/tools/testing/selftests/bpf/
H A Dtest_sockmap.c257 .cipher_type = TLS_CIPHER_AES_GCM_128,
263 .cipher_type = TLS_CIPHER_AES_GCM_128,
/linux-master/net/tls/
H A Dtls_sw.c546 switch (prot->cipher_type) {
1529 switch (prot->cipher_type) {
1542 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) {
2388 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305)
2676 prot->cipher_type = crypto_info->cipher_type;
2724 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
H A Dtls_device.c892 cipher_desc = get_cipher_desc(tls_ctx->crypto_recv.info.cipher_type);
1097 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
H A Dtls_device_fallback.c66 cipher_desc = get_cipher_desc(prot->cipher_type);
308 get_cipher_desc(tls_ctx->crypto_send.info.cipher_type);
336 cipher_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type);
465 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
H A Dtls.h74 static inline const struct tls_cipher_desc *get_cipher_desc(u16 cipher_type) argument
76 if (cipher_type < TLS_CIPHER_MIN || cipher_type > TLS_CIPHER_MAX)
79 return &tls_cipher_desc[cipher_type - TLS_CIPHER_MIN];
314 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305)
325 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) {
340 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) {
H A Dtls_main.c480 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
594 switch (crypto_info->cipher_type) {
605 alt_crypto_info->cipher_type != crypto_info->cipher_type)
647 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
1008 u16 version, cipher_type; local
1029 cipher_type = ctx->prot_info.cipher_type;
1030 if (cipher_type) {
1031 err = nla_put_u16(skb, TLS_INFO_CIPHER, cipher_type);
[all...]
/linux-master/include/net/
H A Dtls.h60 #define TLS_CRYPTO_INFO_READY(info) ((info)->cipher_type)
207 u16 cipher_type; member in struct:tls_prot_info
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls.h39 switch (crypto_info->cipher_type) {
H A Dktls_rx.c376 switch (priv_rx->crypto_info.crypto_info.cipher_type) {
395 priv_rx->crypto_info.crypto_info.cipher_type);
622 switch (crypto_info->cipher_type) {
633 crypto_info->cipher_type);
H A Dktls.c18 switch (crypto_info->cipher_type) {
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.c82 switch (crypto_info->cipher_type) {
130 crypto_info->cipher_type);
/linux-master/drivers/crypto/bcm/
H A Dspu2.c59 static char *spu2_ciph_type_name(enum spu2_cipher_type cipher_type) argument
61 if (cipher_type >= SPU2_CIPHER_TYPE_LAST)
63 return spu2_cipher_type_names[cipher_type];
130 * @cipher_type: [in] cipher type value from software enumeration
138 enum spu_cipher_type cipher_type,
166 switch (cipher_type) {
188 cipher_alg, cipher_type);
604 * @cipher_type: cipher algorithm
612 enum spu2_cipher_type cipher_type,
619 if ((cipher_type !
136 spu2_cipher_xlate(enum spu_cipher_alg cipher_alg, enum spu_cipher_mode cipher_mode, enum spu_cipher_type cipher_type, enum spu2_cipher_type *spu2_type, enum spu2_cipher_mode *spu2_mode) argument
609 spu2_fmd_ctrl0_write(struct SPU2_FMD *fmd, bool is_inbound, bool auth_first, enum spu2_proto_sel protocol, enum spu2_cipher_type cipher_type, enum spu2_cipher_mode cipher_mode, enum spu2_hash_type auth_type, enum spu2_hash_mode auth_mode) argument
[all...]
/linux-master/fs/smb/server/
H A Dsmb2pdu.c770 __le16 cipher_type)
776 pneg_ctxt->Ciphers[0] = cipher_type;
828 if (conn->cipher_type) {
835 conn->cipher_type);
899 conn->cipher_type = 0;
920 conn->cipher_type = pneg_ctxt->Ciphers[i];
939 * SMB 3.1.1 uses the cipher_type field.
942 conn->cipher_type;
1032 if (conn->cipher_type)
8856 static void fill_transform_hdr(void *tr_buf, char *old_buf, __le16 cipher_type) argument
769 build_encrypt_ctxt(struct smb2_encryption_neg_context *pneg_ctxt, __le16 cipher_type) argument
[all...]
H A Dconnection.h103 __le16 cipher_type; member in struct:ksmbd_conn
H A Dauth.c739 (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM ||
740 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM))
858 ksmbd_debug(AUTH, "Cipher type %d\n", conn->cipher_type);
862 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM ||
863 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) {
1130 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM ||
1131 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM)
1140 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM ||
1141 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM)
1146 if (conn->cipher_type
[all...]
/linux-master/tools/testing/selftests/net/
H A Dtls.c46 static void tls_crypto_info_init(uint16_t tls_version, uint16_t cipher_type, argument
51 switch (cipher_type) {
55 tls12->chacha20.info.cipher_type = cipher_type;
60 tls12->aes128.info.cipher_type = cipher_type;
65 tls12->sm4gcm.info.cipher_type = cipher_type;
70 tls12->sm4ccm.info.cipher_type = cipher_type;
278 uint16_t cipher_type; local
[all...]
/linux-master/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c139 if (ctx->cipher_type == OTX2_CPT_AES_CBC ||
140 ctx->cipher_type == OTX2_CPT_DES3_CBC) {
242 if ((ctx->cipher_type == OTX2_CPT_AES_CBC ||
243 ctx->cipher_type == OTX2_CPT_DES3_CBC) &&
258 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type;
262 if (ctx->cipher_type == OTX2_CPT_AES_XTS)
426 ctx->cipher_type = OTX2_CPT_AES_XTS;
444 u32 keylen, u8 cipher_type)
452 ctx->cipher_type = cipher_type;
443 cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) argument
460 cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) argument
590 cpt_aead_init(struct crypto_aead *atfm, u8 cipher_type, u8 mac_type) argument
[all...]
H A Dotx2_cptvf_algs.h123 u8 cipher_type; member in struct:otx2_cpt_enc_ctx
173 u8 cipher_type; member in struct:otx2_cpt_aead_ctx
/linux-master/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c156 if (ctx->cipher_type == OTX_CPT_AES_CBC ||
157 ctx->cipher_type == OTX_CPT_DES3_CBC) {
256 if ((ctx->cipher_type == OTX_CPT_AES_CBC ||
257 ctx->cipher_type == OTX_CPT_DES3_CBC) &&
272 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type;
276 if (ctx->cipher_type == OTX_CPT_AES_XTS)
407 ctx->cipher_type = OTX_CPT_AES_XTS;
423 u32 keylen, u8 cipher_type)
431 ctx->cipher_type = cipher_type;
422 cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) argument
438 cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) argument
505 cpt_aead_init(struct crypto_aead *tfm, u8 cipher_type, u8 mac_type) argument
[all...]

Completed in 364 milliseconds

12