Searched refs:cipher_desc (Results 1 - 5 of 5) sorted by relevance
/kernel/linux/linux-6.6/net/tls/ |
H A D | tls_device_fallback.c | 58 const struct tls_cipher_desc *cipher_desc; in tls_enc_record() local 72 cipher_desc = get_cipher_desc(prot->cipher_type); in tls_enc_record() 74 buf_size = TLS_HEADER_SIZE + cipher_desc->iv; in tls_enc_record() 88 len -= cipher_desc->iv; in tls_enc_record() 90 tls_make_aad(aad, len - cipher_desc->tag, (char *)&rcd_sn, buf[0], prot); in tls_enc_record() 92 memcpy(iv + cipher_desc->salt, buf + TLS_HEADER_SIZE, cipher_desc->iv); in tls_enc_record() 103 *in_len += cipher_desc->tag; in tls_enc_record() 124 len -= cipher_desc->tag; in tls_enc_record() 312 const struct tls_cipher_desc *cipher_desc in fill_sg_out() local 331 const struct tls_cipher_desc *cipher_desc; tls_enc_skb() local 474 const struct tls_cipher_desc *cipher_desc; tls_sw_fallback_init() local [all...] |
H A D | tls.h | 83 const struct tls_cipher_desc *cipher_desc) in crypto_info_iv() 85 return (char *)crypto_info + cipher_desc->iv_offset; in crypto_info_iv() 89 const struct tls_cipher_desc *cipher_desc) in crypto_info_key() 91 return (char *)crypto_info + cipher_desc->key_offset; in crypto_info_key() 95 const struct tls_cipher_desc *cipher_desc) in crypto_info_salt() 97 return (char *)crypto_info + cipher_desc->salt_offset; in crypto_info_salt() 101 const struct tls_cipher_desc *cipher_desc) in crypto_info_rec_seq() 103 return (char *)crypto_info + cipher_desc->rec_seq_offset; in crypto_info_rec_seq() 82 crypto_info_iv(struct tls_crypto_info *crypto_info, const struct tls_cipher_desc *cipher_desc) crypto_info_iv() argument 88 crypto_info_key(struct tls_crypto_info *crypto_info, const struct tls_cipher_desc *cipher_desc) crypto_info_key() argument 94 crypto_info_salt(struct tls_crypto_info *crypto_info, const struct tls_cipher_desc *cipher_desc) crypto_info_salt() argument 100 crypto_info_rec_seq(struct tls_crypto_info *crypto_info, const struct tls_cipher_desc *cipher_desc) crypto_info_rec_seq() argument
|
H A D | tls_device.c | 887 const struct tls_cipher_desc *cipher_desc; in tls_device_reencrypt() local 901 cipher_desc = get_cipher_desc(tls_ctx->crypto_recv.info.cipher_type); in tls_device_reencrypt() 904 orig_buf = kmalloc(rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv, in tls_device_reencrypt() 920 rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv); in tls_device_reencrypt() 921 err = skb_copy_bits(skb, offset, buf, TLS_HEADER_SIZE + cipher_desc->iv); in tls_device_reencrypt() 932 data_len = rxm->full_len - cipher_desc->tag; in tls_device_reencrypt() 1049 const struct tls_cipher_desc *cipher_desc; in tls_set_device_offload() local 1082 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_set_device_offload() 1083 if (!cipher_desc || !cipher_desc in tls_set_device_offload() [all...] |
H A D | tls_main.c | 442 const struct tls_cipher_desc *cipher_desc; in do_tls_getsockopt_conf() local 481 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_getsockopt_conf() 482 if (!cipher_desc || len != cipher_desc->crypto_info) { in do_tls_getsockopt_conf() 487 memcpy(crypto_info_iv(crypto_info, cipher_desc), in do_tls_getsockopt_conf() 488 cctx->iv + cipher_desc->salt, cipher_desc->iv); in do_tls_getsockopt_conf() 489 memcpy(crypto_info_rec_seq(crypto_info, cipher_desc), in do_tls_getsockopt_conf() 490 cctx->rec_seq, cipher_desc->rec_seq); in do_tls_getsockopt_conf() 492 if (copy_to_user(optval, crypto_info, cipher_desc in do_tls_getsockopt_conf() 594 const struct tls_cipher_desc *cipher_desc; do_tls_setsockopt_conf() local [all...] |
H A D | tls_sw.c | 2668 const struct tls_cipher_desc *cipher_desc; in tls_set_sw_offload() local 2697 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_set_sw_offload() 2698 if (!cipher_desc) { in tls_set_sw_offload() 2703 nonce_size = cipher_desc->nonce; in tls_set_sw_offload() 2705 iv = crypto_info_iv(crypto_info, cipher_desc); in tls_set_sw_offload() 2706 key = crypto_info_key(crypto_info, cipher_desc); in tls_set_sw_offload() 2707 salt = crypto_info_salt(crypto_info, cipher_desc); in tls_set_sw_offload() 2708 rec_seq = crypto_info_rec_seq(crypto_info, cipher_desc); in tls_set_sw_offload() 2728 prot->tag_size = cipher_desc->tag; in tls_set_sw_offload() 2731 prot->iv_size = cipher_desc in tls_set_sw_offload() [all...] |
Completed in 9 milliseconds