Searched refs:cipher_desc (Results 1 – 2 of 2) sorted by relevance
59 const struct tls_cipher_desc *cipher_desc; in tls_enc_record() local66 cipher_desc = get_cipher_desc(prot->cipher_type); in tls_enc_record()67 DEBUG_NET_WARN_ON_ONCE(!cipher_desc || !cipher_desc->offloadable); in tls_enc_record()69 buf_size = TLS_HEADER_SIZE + cipher_desc->iv; in tls_enc_record()83 len -= cipher_desc->iv; in tls_enc_record()85 tls_make_aad(aad, len - cipher_desc->tag, (char *)&rcd_sn, buf[0], prot); in tls_enc_record()87 memcpy(iv + cipher_desc->salt, buf + TLS_HEADER_SIZE, cipher_desc->iv); in tls_enc_record()98 *in_len += cipher_desc->tag; in tls_enc_record()119 len -= cipher_desc->tag; in tls_enc_record()307 const struct tls_cipher_desc *cipher_desc = in fill_sg_out() local[all …]
2692 const struct tls_cipher_desc *cipher_desc) in init_prot_info() argument2694 u16 nonce_size = cipher_desc->nonce; in init_prot_info()2712 prot->tag_size = cipher_desc->tag; in init_prot_info()2714 prot->iv_size = cipher_desc->iv; in init_prot_info()2715 prot->salt_size = cipher_desc->salt; in init_prot_info()2716 prot->rec_seq_size = cipher_desc->rec_seq; in init_prot_info()2736 const struct tls_cipher_desc *cipher_desc; in tls_set_sw_offload() local2775 cipher_desc = get_cipher_desc(src_crypto_info->cipher_type); in tls_set_sw_offload()2776 if (!cipher_desc) { in tls_set_sw_offload()2781 rc = init_prot_info(prot, src_crypto_info, cipher_desc); in tls_set_sw_offload()[all …]