Searched refs:cipher_desc (Results 1 – 5 of 5) sorted by relevance
/Linux-v6.6/net/tls/ |
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 319 sg_set_buf(&sg_out[2], dummy_buf, cipher_desc->tag); in fill_sg_out() [all …]
|
D | tls.h | 83 const struct tls_cipher_desc *cipher_desc) in crypto_info_iv() argument 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() argument 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() argument 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() argument 103 return (char *)crypto_info + cipher_desc->rec_seq_offset; in crypto_info_rec_seq()
|
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->offloadable) { in tls_set_device_offload() 1088 iv = crypto_info_iv(crypto_info, cipher_desc); in tls_set_device_offload() [all …]
|
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->crypto_info)) in do_tls_getsockopt_conf() 594 const struct tls_cipher_desc *cipher_desc; in do_tls_setsockopt_conf() local 635 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_setsockopt_conf() [all …]
|
D | tls_sw.c | 2602 const struct tls_cipher_desc *cipher_desc; in tls_set_sw_offload() local 2657 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_set_sw_offload() 2658 if (!cipher_desc) { in tls_set_sw_offload() 2663 nonce_size = cipher_desc->nonce; in tls_set_sw_offload() 2665 iv = crypto_info_iv(crypto_info, cipher_desc); in tls_set_sw_offload() 2666 key = crypto_info_key(crypto_info, cipher_desc); in tls_set_sw_offload() 2667 salt = crypto_info_salt(crypto_info, cipher_desc); in tls_set_sw_offload() 2668 rec_seq = crypto_info_rec_seq(crypto_info, cipher_desc); in tls_set_sw_offload() 2688 prot->tag_size = cipher_desc->tag; in tls_set_sw_offload() 2691 prot->iv_size = cipher_desc->iv; in tls_set_sw_offload() [all …]
|