Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/net/
H A Dtls.c51 switch (cipher_type) { in tls_crypto_info_init()
55 tls12->chacha20.info.cipher_type = cipher_type; in tls_crypto_info_init()
60 tls12->aes128.info.cipher_type = cipher_type; in tls_crypto_info_init()
65 tls12->sm4gcm.info.cipher_type = cipher_type; in tls_crypto_info_init()
70 tls12->sm4ccm.info.cipher_type = cipher_type; in tls_crypto_info_init()
75 tls12->aesccm128.info.cipher_type = cipher_type; in tls_crypto_info_init()
80 tls12->aesgcm256.info.cipher_type = cipher_type; in tls_crypto_info_init()
85 tls12->ariagcm128.info.cipher_type = cipher_type; in tls_crypto_info_init()
90 tls12->ariagcm256.info.cipher_type = cipher_type; in tls_crypto_info_init()
1536 EXPECT_EQ(get.crypto_info.cipher_type, variant->cipher_type); in TEST_F()
[all …]
/openbmc/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()
311 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) in tls_advance_record_sn()
322 prot->cipher_type == TLS_CIPHER_CHACHA20_POLY1305) { in tls_xor_iv_with_seq()
337 prot->cipher_type != TLS_CIPHER_CHACHA20_POLY1305) { in tls_fill_prepend()
H A Dtls_device_fallback.c65 switch (prot->cipher_type) { in tls_enc_record()
72 cipher_desc = get_cipher_desc(prot->cipher_type); in tls_enc_record()
313 get_cipher_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_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in tls_enc_skb()
477 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_sw_fallback_init()
H A Dtls_main.c481 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_getsockopt_conf()
629 alt_crypto_info->cipher_type != crypto_info->cipher_type) { in do_tls_setsockopt_conf()
635 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_setsockopt_conf()
641 switch (crypto_info->cipher_type) { in do_tls_setsockopt_conf()
1006 u16 version, cipher_type; in tls_get_info() local
1027 cipher_type = ctx->prot_info.cipher_type; in tls_get_info()
1028 if (cipher_type) { in tls_get_info()
1029 err = nla_put_u16(skb, TLS_INFO_CIPHER, cipher_type); in tls_get_info()
/openbmc/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c138 if (ctx->cipher_type == OTX2_CPT_AES_CBC || in output_iv_copyback()
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
474 if (cipher_type == OTX2_CPT_AES_CBC || cipher_type == OTX2_CPT_AES_ECB) in cpt_aes_setkey()
480 ctx->cipher_type = cipher_type; in cpt_aes_setkey()
580 ctx->cipher_type = cipher_type; in cpt_aead_init()
619 switch (ctx->cipher_type) { in cpt_aead_init()
[all …]
H A Dotx2_cptvf_algs.h122 u8 cipher_type; member
168 u8 cipher_type; member
/openbmc/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
/openbmc/linux/drivers/crypto/marvell/octeontx/
H A 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()
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
457 ctx->cipher_type = cipher_type; in cpt_aes_setkey()
515 ctx->cipher_type = cipher_type; in cpt_aead_init()
[all …]
H A Dotx_cptvf_algs.h132 u8 cipher_type; member
177 u8 cipher_type; member
/openbmc/linux/fs/smb/server/
H A Dauth.c740 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in generate_key()
862 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_smb3encryptionkey()
863 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) { in generate_smb3encryptionkey()
1130 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
1131 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
1140 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
1141 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
1146 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in ksmbd_crypt_message()
1147 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message()
1187 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message()
[all …]
/openbmc/linux/fs/smb/client/
H A Dcifs_ioctl.h63 __u16 cipher_type; member
81 __u16 cipher_type; member
H A Dsmb2transport.c369 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_key()
370 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_key()
481 cifs_dbg(VFS, "Cipher type %d\n", server->cipher_type); in generate_smb3signingkey()
486 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_smb3signingkey()
487 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_smb3signingkey()
919 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate()
920 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
933 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate()
934 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
H A Dioctl.c275 switch (ses->server->cipher_type) { in cifs_dump_full_key()
299 out.cipher_type = le16_to_cpu(ses->server->cipher_type); in cifs_dump_full_key()
488 pkey_inf.cipher_type = in cifs_ioctl()
489 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl()
/openbmc/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()
H A 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()
H A Dcipher.c326 cipher_parms.type = ctx->cipher_type; in handle_skcipher_req()
716 cipher_parms.type = ctx->cipher_type; in handle_ahash_req()
1302 cipher_parms.type = ctx->cipher_type; in handle_aead_req()
1773 ctx->cipher_type = CIPHER_TYPE_DES; in des_setkey()
1787 ctx->cipher_type = CIPHER_TYPE_3DES; in threedes_setkey()
1802 ctx->cipher_type = CIPHER_TYPE_AES128; in aes_setkey()
1805 ctx->cipher_type = CIPHER_TYPE_AES192; in aes_setkey()
1808 ctx->cipher_type = CIPHER_TYPE_AES256; in aes_setkey()
1870 cipher_parms.type = ctx->cipher_type; in skcipher_setkey()
2753 ctx->cipher_type = CIPHER_TYPE_DES; in aead_authenc_setkey()
[all …]
/openbmc/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()
/openbmc/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()
624 switch (crypto_info->cipher_type) { in mlx5e_ktls_add_rx()
635 crypto_info->cipher_type); in mlx5e_ktls_add_rx()
H A Dktls.h38 switch (crypto_info->cipher_type) { in mlx5e_ktls_type_check()
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A 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()
H A 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()
/openbmc/linux/tools/include/uapi/linux/
H A Dtls.h67 __u16 cipher_type; member
/openbmc/linux/include/net/
H A Dtls.h60 #define TLS_CRYPTO_INFO_READY(info) ((info)->cipher_type)
209 u16 cipher_type; member

12