Home
last modified time | relevance | path

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

/net/tls/
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()
260 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_do_decryption() local
261 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_do_decryption()
262 struct tls_sw_context_rx *ctx = tls_sw_ctx_rx(tls_ctx); in tls_do_decryption()
309 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_trim_both_msgs() local
310 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_trim_both_msgs()
311 struct tls_sw_context_tx *ctx = tls_sw_ctx_tx(tls_ctx); in tls_trim_both_msgs()
322 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_alloc_encrypted_msg() local
[all …]
Dtls_device.c164 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_icsk_clean_acked() local
170 if (!tls_ctx) in tls_icsk_clean_acked()
173 ctx = tls_offload_ctx_tx(tls_ctx); in tls_icsk_clean_acked()
199 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_device_sk_destruct() local
200 struct tls_offload_context_tx *ctx = tls_offload_ctx_tx(tls_ctx); in tls_device_sk_destruct()
202 tls_ctx->sk_destruct(sk); in tls_device_sk_destruct()
204 if (tls_ctx->tx_conf == TLS_HW) { in tls_device_sk_destruct()
212 tls_device_queue_ctx_destruction(tls_ctx); in tls_device_sk_destruct()
218 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_device_free_resources_tx() local
220 tls_free_partial_record(sk, tls_ctx); in tls_device_free_resources_tx()
[all …]
Dtls_device_fallback.c305 struct tls_context *tls_ctx, in fill_sg_out() argument
313 get_cipher_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_desc = get_cipher_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()
[all …]
Dtls.h146 void tls_update_rx_zc_capable(struct tls_context *tls_ctx);
148 void tls_sw_strparser_done(struct tls_context *tls_ctx);
151 void tls_sw_cancel_work_tx(struct tls_context *tls_ctx);
153 void tls_sw_free_ctx_tx(struct tls_context *tls_ctx);
156 void tls_sw_free_ctx_rx(struct tls_context *tls_ctx);
231 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx);
255 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx) in tls_device_decrypted() argument
273 static inline bool tls_is_pending_open_record(struct tls_context *tls_ctx) in tls_is_pending_open_record() argument
275 return tls_ctx->pending_open_record_frags; in tls_is_pending_open_record()
Dtls_main.c409 struct tls_context *tls_ctx; in tls_sk_poll() local
423 tls_ctx = tls_get_ctx(sk); in tls_sk_poll()
424 ctx = tls_sw_ctx_rx(tls_ctx); in tls_sk_poll()