Home
last modified time | relevance | path

Searched refs:tls_ctx (Results 1 – 5 of 5) sorted by relevance

/net/tls/
A Dtls_device.c168 if (!tls_ctx) in tls_tcp_clean_acked()
200 tls_ctx->sk_destruct(sk); in tls_device_sk_destruct()
202 if (tls_ctx->tx_conf == TLS_HW) { in tls_device_sk_destruct()
238 rcd_sn = tls_ctx->tx.rec_seq; in tls_device_resync_tx()
545 tls_ctx, in tls_push_data()
568 if (!tls_ctx->zerocopy_sendfile) in tls_device_sendmsg()
571 mutex_lock(&tls_ctx->tx_lock); in tls_device_sendmsg()
585 mutex_unlock(&tls_ctx->tx_lock); in tls_device_sendmsg()
598 mutex_lock(&tls_ctx->tx_lock); in tls_device_splice_eof()
776 if (tls_ctx->rx_conf != TLS_HW) in tls_device_rx_resync_new_rec()
[all …]
A Dtls_sw.c194 struct tls_context *tls_ctx; in tls_decrypt_done() local
216 tls_ctx = tls_get_ctx(sk); in tls_decrypt_done()
217 ctx = tls_sw_ctx_rx(tls_ctx); in tls_decrypt_done()
469 struct tls_context *tls_ctx; in tls_encrypt_done() local
482 tls_ctx = tls_get_ctx(sk); in tls_encrypt_done()
483 prot = &tls_ctx->prot_info; in tls_encrypt_done()
484 ctx = tls_sw_ctx_tx(tls_ctx); in tls_encrypt_done()
561 tls_ctx->tx.rec_seq); in tls_do_encryption()
811 tls_fill_prepend(tls_ctx, in tls_push_record()
2597 tls_sw_free_ctx_rx(tls_ctx); in tls_sw_free_resources_rx()
[all …]
A Dtls_device_fallback.c281 struct tls_context *tls_ctx, in fill_sg_out() argument
289 get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in fill_sg_out()
298 static struct sk_buff *tls_enc_skb(struct tls_context *tls_ctx, in tls_enc_skb() argument
304 struct tls_offload_context_tx *ctx = tls_offload_ctx_tx(tls_ctx); in tls_enc_skb()
317 cipher_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in tls_enc_skb()
327 salt = crypto_info_salt(&tls_ctx->crypto_send.info, cipher_desc); in tls_enc_skb()
338 fill_sg_out(sg_out, buf, tls_ctx, nskb, tcp_payload_offset, in tls_enc_skb()
343 &tls_ctx->prot_info) < 0) in tls_enc_skb()
367 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_sw_fallback() local
368 struct tls_offload_context_tx *ctx = tls_offload_ctx_tx(tls_ctx); in tls_sw_fallback()
[all …]
A Dtls.h150 void tls_update_rx_zc_capable(struct tls_context *tls_ctx);
152 void tls_sw_strparser_done(struct tls_context *tls_ctx);
155 void tls_sw_cancel_work_tx(struct tls_context *tls_ctx);
157 void tls_sw_free_ctx_tx(struct tls_context *tls_ctx);
160 void tls_sw_free_ctx_rx(struct tls_context *tls_ctx);
235 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx);
259 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx) in tls_device_decrypted() argument
277 static inline bool tls_is_pending_open_record(struct tls_context *tls_ctx) in tls_is_pending_open_record() argument
279 return tls_ctx->pending_open_record_frags; in tls_is_pending_open_record()
A Dtls_main.c408 struct tls_context *tls_ctx; in tls_sk_poll() local
422 tls_ctx = tls_get_ctx(sk); in tls_sk_poll()
423 ctx = tls_sw_ctx_rx(tls_ctx); in tls_sk_poll()

Completed in 20 milliseconds