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

12

/linux-master/tools/include/uapi/linux/
H A Dtls.h67 __u16 cipher_type; member in struct:tls_crypto_info
/linux-master/drivers/crypto/cavium/cpt/
H A Dcptvf_algs.h27 enum cipher_type { enum
101 u8 cipher_type:4; member in struct:cvm_enc_ctx
H A Dcptvf_algs.c121 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type;
125 if (ctx->cipher_type == AES_XTS)
246 ctx->cipher_type = AES_XTS;
279 if (ctx->cipher_type == DES3_CBC)
289 u32 keylen, u8 cipher_type)
293 ctx->cipher_type = cipher_type;
288 cvm_setkey(struct crypto_skcipher *cipher, const u8 *key, u32 keylen, u8 cipher_type) argument
/linux-master/fs/smb/client/
H A Dcifs_ioctl.h63 __u16 cipher_type; member in struct:smb3_key_debug_info
81 __u16 cipher_type; member in struct:smb3_full_key_debug_info
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);
/linux-master/net/tls/
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...]
H A Dtls_device_fallback.c65 cipher_desc = get_cipher_desc(prot->cipher_type);
307 get_cipher_desc(tls_ctx->crypto_send.info.cipher_type);
335 cipher_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type);
464 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
/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/octeontx/
H A Dotx_cptvf_algs.h132 u8 cipher_type; member in struct:otx_cpt_enc_ctx
177 u8 cipher_type; member in struct:otx_cpt_aead_ctx
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...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_txrx.c35 switch (crypto_info->crypto_info.cipher_type) {
52 crypto_info->crypto_info.cipher_type);
H A Dktls.h39 switch (crypto_info->cipher_type) {
H A Dktls.c18 switch (crypto_info->cipher_type) {
/linux-master/drivers/crypto/marvell/octeontx2/
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
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...]
/linux-master/drivers/crypto/cavium/nitrox/
H A Dnitrox_skcipher.c173 enum flexi_cipher cipher_type; local
177 cipher_type = flexi_cipher_type(name);
178 if (unlikely(cipher_type == CIPHER_INVALID)) {
187 flags->w0.cipher_type = cipher_type;
/linux-master/fs/smb/server/
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/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/include/uapi/linux/
H A Dtls.h122 __u16 cipher_type; member in struct:tls_crypto_info
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_main.c496 int cipher_type; local
523 switch (tmp_crypto_info.cipher_type) {
540 cipher_type = TLS_CIPHER_AES_GCM_128;
557 cipher_type = TLS_CIPHER_AES_GCM_256;
564 rc = chtls_setkey(csk, keylen, optname, cipher_type);
H A Dchtls_hw.c253 int cipher_type)
268 switch (cipher_type) {
358 u32 optname, int cipher_type)
423 ret = chtls_key_info(csk, kctx, keylen, optname, cipher_type);
250 chtls_key_info(struct chtls_sock *csk, struct _key_ctx *kctx, u32 keylen, u32 optname, int cipher_type) argument
357 chtls_setkey(struct chtls_sock *csk, u32 keylen, u32 optname, int cipher_type) argument
/linux-master/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_ktls.c43 switch (crypto_info->cipher_type) {
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsetget_sockopt.c121 aes128.info.cipher_type = TLS_CIPHER_AES_GCM_128;

Completed in 236 milliseconds

12