Lines Matching refs:tls_ctx
305 struct tls_context *tls_ctx, in fill_sg_out() argument
313 &tls_cipher_size_desc[tls_ctx->crypto_send.info.cipher_type]; in fill_sg_out()
322 static struct sk_buff *tls_enc_skb(struct tls_context *tls_ctx, in tls_enc_skb() argument
328 struct tls_offload_context_tx *ctx = tls_offload_ctx_tx(tls_ctx); in tls_enc_skb()
341 switch (tls_ctx->crypto_send.info.cipher_type) { in tls_enc_skb()
343 salt = tls_ctx->crypto_send.aes_gcm_128.salt; in tls_enc_skb()
346 salt = tls_ctx->crypto_send.aes_gcm_256.salt; in tls_enc_skb()
351 cipher_sz = &tls_cipher_size_desc[tls_ctx->crypto_send.info.cipher_type]; in tls_enc_skb()
369 fill_sg_out(sg_out, buf, tls_ctx, nskb, tcp_payload_offset, in tls_enc_skb()
374 &tls_ctx->prot_info) < 0) in tls_enc_skb()
398 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_sw_fallback() local
399 struct tls_offload_context_tx *ctx = tls_offload_ctx_tx(tls_ctx); in tls_sw_fallback()
431 nskb = tls_enc_skb(tls_ctx, sg_out, sg_in, skb, sync_size, rcd_sn); in tls_sw_fallback()