/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | tls.c | 46 static void tls_crypto_info_init(uint16_t tls_version, uint16_t cipher_type, in tls_crypto_info_init() argument 51 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() 278 uint16_t cipher_type; FIXTURE_VARIANT() local [all...] |
/kernel/linux/linux-6.6/net/tls/ |
H A D | tls.h | 74 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 D | tls_device_fallback.c | 65 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 D | tls_main.c | 481 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() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 121 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() 295 ctx->cipher_type = cipher_type; in cvm_setkey() 289 cvm_setkey(struct crypto_skcipher *cipher, const u8 *key, u32 keylen, u8 cipher_type) cvm_setkey() argument
|
H A D | cptvf_algs.h | 27 enum cipher_type { enum 101 u8 cipher_type:4; member
|
/kernel/linux/linux-6.6/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 121 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() 293 ctx->cipher_type = cipher_type; in cvm_setkey() 288 cvm_setkey(struct crypto_skcipher *cipher, const u8 *key, u32 keylen, u8 cipher_type) cvm_setkey() argument
|
H A D | cptvf_algs.h | 27 enum cipher_type { enum 101 u8 cipher_type:4; member
|
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_algs.c | 138 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() 448 ctx->cipher_type = cipher_type; in cpt_des_setkey() 439 cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) cpt_des_setkey() argument 456 cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) cpt_aes_setkey() argument 574 cpt_aead_init(struct crypto_aead *atfm, u8 cipher_type, u8 mac_type) cpt_aead_init() argument [all...] |
H A D | otx2_cptvf_algs.h | 122 u8 cipher_type; member 168 u8 cipher_type; member
|
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.c | 155 if (ctx->cipher_type == OTX_CPT_AES_CBC || in output_iv_copyback() 156 ctx->cipher_type == OTX_CPT_DES3_CBC) { in output_iv_copyback() 255 if ((ctx->cipher_type == OTX_CPT_AES_CBC || in create_ctx_hdr() 256 ctx->cipher_type == OTX_CPT_DES3_CBC) && in create_ctx_hdr() 271 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 275 if (ctx->cipher_type == OTX_CPT_AES_XTS) in create_ctx_hdr() 406 ctx->cipher_type = OTX_CPT_AES_XTS; in otx_cpt_skcipher_xts_setkey() 422 u32 keylen, u8 cipher_type) in cpt_des_setkey() 430 ctx->cipher_type = cipher_type; in cpt_des_setkey() 421 cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) cpt_des_setkey() argument 437 cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) cpt_aes_setkey() argument 509 cpt_aead_init(struct crypto_aead *tfm, u8 cipher_type, u8 mac_type) cpt_aead_init() argument [all...] |
H A D | otx_cptvf_algs.h | 132 u8 cipher_type; member 177 u8 cipher_type; member
|
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.c | 156 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() 431 ctx->cipher_type = cipher_type; in cpt_des_setkey() 422 cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) cpt_des_setkey() argument 438 cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) cpt_aes_setkey() argument 511 cpt_aead_init(struct crypto_aead *tfm, u8 cipher_type, u8 mac_type) cpt_aead_init() argument [all...] |
H A D | otx_cptvf_algs.h | 132 u8 cipher_type; member 177 u8 cipher_type; member
|
/kernel/linux/linux-6.6/fs/smb/server/ |
H A D | auth.c | 737 (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_key() 738 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in generate_key() 856 ksmbd_debug(AUTH, "Cipher type %d\n", conn->cipher_type); in generate_smb3encryptionkey() 860 if (conn->cipher_type == SMB2_ENCRYPTION_AES256_CCM || in generate_smb3encryptionkey() 861 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) { in generate_smb3encryptionkey() 1128 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message() 1129 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message() 1138 if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in ksmbd_crypt_message() 1139 conn->cipher_type == SMB2_ENCRYPTION_AES256_GCM) in ksmbd_crypt_message() 1144 if (conn->cipher_type in ksmbd_crypt_message() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/bcm/ |
H A D | spu2.c | 59 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() 130 * @cipher_type: [in] cipher type value from software enumeration 138 enum spu_cipher_type cipher_type, in spu2_cipher_xlate() 166 switch (cipher_type) { in spu2_cipher_xlate() 188 cipher_alg, cipher_type); in spu2_cipher_xlate() 603 * @cipher_type: cipher algorithm 611 enum spu2_cipher_type cipher_type, in spu2_fmd_ctrl0_write() 618 if ((cipher_type ! in spu2_fmd_ctrl0_write() 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) spu2_cipher_xlate() argument 608 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) spu2_fmd_ctrl0_write() argument [all...] |
/kernel/linux/linux-5.10/net/tls/ |
H A D | tls_main.c | 378 switch (crypto_info->cipher_type) { in do_tls_getsockopt_conf() 511 alt_crypto_info->cipher_type != crypto_info->cipher_type) { in do_tls_setsockopt_conf() 517 switch (crypto_info->cipher_type) { in do_tls_setsockopt_conf() 813 u16 version, cipher_type; in tls_get_info() local 834 cipher_type = ctx->prot_info.cipher_type; in tls_get_info() 835 if (cipher_type) { in tls_get_info() 836 err = nla_put_u16(skb, TLS_INFO_CIPHER, cipher_type); in tls_get_info()
|
/kernel/linux/linux-5.10/fs/cifs/ |
H A D | smb2transport.c | 358 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_key() 359 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_key() 454 cifs_dbg(VFS, "Cipher type %d\n", server->cipher_type); in generate_smb3signingkey() 459 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_smb3signingkey() 460 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_smb3signingkey() 870 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate() 871 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate() 884 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate() 885 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
|
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | smb2transport.c | 367 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_key() 368 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_key() 479 cifs_dbg(VFS, "Cipher type %d\n", server->cipher_type); in generate_smb3signingkey() 484 if ((server->cipher_type == SMB2_ENCRYPTION_AES256_CCM) || in generate_smb3signingkey() 485 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) { in generate_smb3signingkey() 917 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate() 918 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate() 931 if ((server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) || in smb3_crypto_aead_allocate() 932 (server->cipher_type == SMB2_ENCRYPTION_AES256_GCM)) in smb3_crypto_aead_allocate()
|
H A D | ioctl.c | 270 switch (ses->server->cipher_type) { in cifs_dump_full_key() 294 out.cipher_type = le16_to_cpu(ses->server->cipher_type); in cifs_dump_full_key() 478 pkey_inf.cipher_type = in cifs_ioctl() 479 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl()
|
H A D | cifs_ioctl.h | 63 __u16 cipher_type; member 81 __u16 cipher_type; member
|
/kernel/linux/linux-6.6/drivers/crypto/bcm/ |
H A D | spu2.c | 59 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() 130 * @cipher_type: [in] cipher type value from software enumeration 138 enum spu_cipher_type cipher_type, in spu2_cipher_xlate() 166 switch (cipher_type) { in spu2_cipher_xlate() 188 cipher_alg, cipher_type); in spu2_cipher_xlate() 604 * @cipher_type: cipher algorithm 612 enum spu2_cipher_type cipher_type, in spu2_fmd_ctrl0_write() 619 if ((cipher_type ! in spu2_fmd_ctrl0_write() 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) spu2_cipher_xlate() 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) spu2_fmd_ctrl0_write() argument [all...] |
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_skcipher.c | 173 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()
|
/kernel/linux/linux-6.6/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_skcipher.c | 173 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ktls_txrx.c | 35 switch (crypto_info->crypto_info.cipher_type) { in fill_static_params() 52 crypto_info->crypto_info.cipher_type); in fill_static_params()
|