Home
last modified time | relevance | path

Searched full:handshake (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/linux/drivers/net/wireguard/
H A Dnoise.c46 /* Must hold peer->handshake.static_identity->lock */
49 down_write(&peer->handshake.lock); in wg_noise_precompute_static_static()
50 if (!peer->handshake.static_identity->has_identity || in wg_noise_precompute_static_static()
51 !curve25519(peer->handshake.precomputed_static_static, in wg_noise_precompute_static_static()
52 peer->handshake.static_identity->static_private, in wg_noise_precompute_static_static()
53 peer->handshake.remote_static)) in wg_noise_precompute_static_static()
54 memset(peer->handshake.precomputed_static_static, 0, in wg_noise_precompute_static_static()
56 up_write(&peer->handshake.lock); in wg_noise_precompute_static_static()
59 void wg_noise_handshake_init(struct noise_handshake *handshake, in wg_noise_handshake_init() argument
65 memset(handshake, 0, sizeof(*handshake)); in wg_noise_handshake_init()
[all …]
H A Dtimers.c13 * - Timer for retransmitting the handshake if we don't hear back after
19 * - Timer for initiating new handshake if we have sent a packet but after have
47 pr_debug("%s: Handshake for peer %llu (%pISpfsc) did not complete after %d attempts, giving up\n", in wg_expired_retransmit_handshake()
53 * if we try unsuccessfully for too long to make a handshake. in wg_expired_retransmit_handshake()
65 …pr_debug("%s: Handshake for peer %llu (%pISpfsc) did not complete after %d seconds, retrying (try … in wg_expired_retransmit_handshake()
95 …pr_debug("%s: Retrying handshake with peer %llu (%pISpfsc) because we stopped hearing back after %… in wg_expired_new_handshake()
130 wg_noise_handshake_clear(&peer->handshake); in wg_queued_expired_zero_key_material()
166 * keepalive, data, or handshake.
174 * keepalive, data, or handshake.
181 /* Should be called after a handshake initiation message is sent. */
[all …]
H A Dnoise.h95 void wg_noise_handshake_init(struct noise_handshake *handshake,
100 void wg_noise_handshake_clear(struct noise_handshake *handshake);
121 struct noise_handshake *handshake);
127 struct noise_handshake *handshake);
132 bool wg_noise_handshake_begin_session(struct noise_handshake *handshake,
H A Dsend.c30 net_dbg_ratelimited("%s: Sending handshake initiation to peer %llu (%pISpfsc)\n", in wg_packet_send_handshake_initiation()
34 if (wg_noise_handshake_create_initiation(&packet, &peer->handshake)) { in wg_packet_send_handshake_initiation()
90 net_dbg_ratelimited("%s: Sending handshake response to peer %llu (%pISpfsc)\n", in wg_packet_send_handshake_response()
94 if (wg_noise_handshake_create_response(&packet, &peer->handshake)) { in wg_packet_send_handshake_response()
96 if (wg_noise_handshake_begin_session(&peer->handshake, in wg_packet_send_handshake_response()
116 net_dbg_skb_ratelimited("%s: Sending cookie response for denied handshake message for %pISpfsc\n", in wg_packet_send_handshake_cookie()
372 * handshake. in wg_packet_send_staged_packets()
396 /* We orphan the packets if we're waiting on a handshake, so that they in wg_packet_send_staged_packets()
411 * means we should initiate a new handshake. in wg_packet_send_staged_packets()
H A Dnetlink.c116 down_read(&peer->handshake.lock); in get_peer()
118 peer->handshake.remote_static); in get_peer()
119 up_read(&peer->handshake.lock); in get_peer()
129 down_read(&peer->handshake.lock); in get_peer()
132 peer->handshake.preshared_key); in get_peer()
133 up_read(&peer->handshake.lock); in get_peer()
430 down_write(&peer->handshake.lock); in set_peer()
431 memcpy(&peer->handshake.preshared_key, preshared_key, in set_peer()
433 up_write(&peer->handshake.lock); in set_peer()
H A Dpeer.c40 wg_noise_handshake_init(&peer->handshake, &wg->static_identity, in wg_peer_create()
135 * where it has processed an incoming handshake packet, but where in peer_remove_after_dead()
142 * hash table, which allows for a maximum of one handshake response, in peer_remove_after_dead()
193 /* The final zeroing takes care of clearing any remaining handshake key in rcu_release()
212 &peer->handshake.entry); in kref_release()
H A Dreceive.c129 net_dbg_skb_ratelimited("%s: Invalid MAC of handshake, dropping packet from %pISpfsc\n", in wg_receive_handshake_packet()
146 net_dbg_skb_ratelimited("%s: Invalid handshake initiation from %pISpfsc\n", in wg_receive_handshake_packet()
151 net_dbg_ratelimited("%s: Receiving handshake initiation from peer %llu (%pISpfsc)\n", in wg_receive_handshake_packet()
168 net_dbg_skb_ratelimited("%s: Invalid handshake response from %pISpfsc\n", in wg_receive_handshake_packet()
173 net_dbg_ratelimited("%s: Receiving handshake response from peer %llu (%pISpfsc)\n", in wg_receive_handshake_packet()
176 if (wg_noise_handshake_begin_session(&peer->handshake, in wg_receive_handshake_packet()
193 WARN(1, "Somehow a wrong type of packet wound up in the handshake queue!\n"); in wg_receive_handshake_packet()
563 net_dbg_skb_ratelimited("%s: Dropping handshake packet from %pISpfsc\n", in wg_packet_receive()
/linux/Documentation/networking/
H A Dtls-handshake.rst4 In-Kernel TLS Handshake
15 does not handle the TLS handshake subprotocol which is used to establish
19 There are several possible ways to provide a handshake service in the
22 aware of how the handshake gets done.
25 User handshake agent
28 As of this writing, there is no TLS handshake implementation in the
29 Linux kernel. To provide a handshake service, a handshake agent
31 kernel consumer might require a TLS handshake. Handshake agents listen
32 for events sent from the kernel that indicate a handshake request is
35 An open socket is passed to a handshake agent via a netlink operation,
[all …]
/linux/net/handshake/
H A Dtlshd.c19 #include <net/handshake.h>
24 #include <uapi/linux/handshake.h>
25 #include "handshake.h"
90 * @req: socket on which the handshake was performed
190 * @req: handshake parameters to return
270 * tls_client_hello_anon - request an anonymous TLS handshake on a socket
271 * @args: socket and handshake parameters for this request
275 * %0: Handshake request enqueue; ->done will be called when complete
296 * tls_client_hello_x509 - request an x.509-based TLS handshake on a socket
297 * @args: socket and handshake parameters for this request
[all …]
H A Dnetlink.c3 * Generic netlink handshake service
23 #include <uapi/linux/handshake.h>
24 #include "handshake.h"
27 #include <trace/events/handshake.h>
32 * @proto: handshake protocol
232 * handshake_pernet - Get the handshake private per-net structure
236 * handshake module, or NULL if handshake_init() failed.
251 pr_warn("handshake: hash initialization failed (%d)\n", ret); in handshake_init()
257 pr_warn("handshake: netlink registration failed (%d)\n", ret); in handshake_init()
267 * shunts the handshake consumer API to return ENOTSUPP in handshake_init()
[all …]
H A DMakefile3 # Makefile for the Generic HANDSHAKE service
10 obj-y += handshake.o
11 handshake-y := alert.o genl.o netlink.o request.o tlshd.o trace.o
13 obj-$(CONFIG_NET_HANDSHAKE_KUNIT_TEST) += handshake-test.o
H A Dgenl.c3 /* Documentation/netlink/specs/handshake.yaml */
11 #include <uapi/linux/handshake.h>
25 /* Ops table for handshake */
H A Dhandshake.h3 * Generic netlink handshake service
29 /* One handshake request */
49 /* Invariants for all handshake requests for one transport layer
H A Dalert.c18 #include <net/handshake.h>
22 #include "handshake.h"
24 #include <trace/events/handshake.h>
H A Dtrace.c18 #include "handshake.h"
22 #include <trace/events/handshake.h>
H A Dgenl.h3 /* Documentation/netlink/specs/handshake.yaml */
12 #include <uapi/linux/handshake.h>
/linux/arch/powerpc/kernel/
H A Dsmp-tbsync.c28 volatile int handshake; member
58 while (!tbsync->handshake) in smp_generic_take_timebase()
69 while (tbsync->handshake) in smp_generic_take_timebase()
94 tbsync->handshake = 1; in start_contest()
100 tbsync->handshake = 0; in start_contest()
164 tbsync->handshake = 1; in smp_generic_give_timebase()
167 tbsync->handshake = 0; in smp_generic_give_timebase()
/linux/Documentation/netlink/specs/
H A Dhandshake.yaml8 name: handshake
12 doc: Netlink protocol to request a transport layer security handshake.
92 doc: Notify handlers that a new handshake request is waiting
96 doc: Handler retrieves next queued handshake request
114 doc: Handler reports handshake completion
/linux/drivers/char/
H A Ddsp56k.c60 #define handshake(count, maxio, timeout, ENABLE, f) \ macro
203 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read()
213 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read()
220 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read()
232 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read()
265 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write()
275 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write()
282 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write()
294 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write()
/linux/drivers/net/ipa/
H A Dipa_qmi.h49 * of QMI messages that perform a "handshake" between the AP and modem.
53 * IPA hardware until this handshake is complete.
55 * If the modem crashes (or shuts down) a new handshake begins when the
/linux/Documentation/admin-guide/blockdev/drbd/
H A Ddrbd-connection-state-overview.dot21 label="try to connect, handshake"
53 // handshake [label="drbd_connect()\ndrbd_do_handshake\ndrbd_sync_handshake() etc."]
65 …WFReportParams -> StandAlone [ label="during handshake\lpeers do not agree\labout something essent…
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dpsp_v11_0_8.c41 /* there might be handshake issue with hardware which needs delay */ in psp_v11_0_8_ring_stop()
50 /* there might be handshake issue with hardware which needs delay */ in psp_v11_0_8_ring_stop()
86 /* there might be handshake issue with hardware which needs delay */ in psp_v11_0_8_ring_create()
116 /* there might be handshake issue with hardware which needs delay */ in psp_v11_0_8_ring_create()
H A Dpsp_v12_0.c102 /* there might be handshake issue with hardware which needs delay */ in psp_v12_0_bootloader_load_sysdrv()
141 /* there might be handshake issue with hardware which needs delay */ in psp_v12_0_bootloader_load_sos()
203 /* there might be handshake issue with hardware which needs delay */ in psp_v12_0_ring_create()
225 /* there might be handshake issue with hardware which needs delay */ in psp_v12_0_ring_create()
250 /* there might be handshake issue with hardware which needs delay */ in psp_v12_0_ring_stop()
H A Dpsp_v13_0_4.c185 /* there might be handshake issue with hardware which needs delay */ in psp_v13_0_4_bootloader_load_sos()
204 /* there might be handshake issue with hardware which needs delay */ in psp_v13_0_4_ring_stop()
213 /* there might be handshake issue with hardware which needs delay */ in psp_v13_0_4_ring_stop()
249 /* there might be handshake issue with hardware which needs delay */ in psp_v13_0_4_ring_create()
279 /* there might be handshake issue with hardware which needs delay */ in psp_v13_0_4_ring_create()
/linux/drivers/pmdomain/imx/
H A Dimx8m-blk-ctrl.c426 * allow the handshake with the GPC to progress we put the VPUs in imx8mm_vpu_power_notifier()
435 * wait for the ADB handshake to happen, so we just delay for a in imx8mm_vpu_power_notifier()
436 * bit. On power down the GPC driver waits for the handshake. in imx8mm_vpu_power_notifier()
539 * wait for the ADB handshake to happen, so we just delay for a in imx8mm_disp_power_notifier()
540 * bit. On power down the GPC driver waits for the handshake. in imx8mm_disp_power_notifier()
609 * wait for the ADB handshake to happen, so we just delay for a in imx8mn_disp_power_notifier()
610 * bit. On power down the GPC driver waits for the handshake. in imx8mn_disp_power_notifier()
684 * wait for the ADB handshake to happen, so we just delay for a in imx8mp_media_power_notifier()
685 * bit. On power down the GPC driver waits for the handshake. in imx8mp_media_power_notifier()
825 * wait for the ADB handshake to happen, so we just delay for a in imx8mq_vpu_power_notifier()
[all …]

12345678910>>...16