WebAPI/PresentationAPI:Protocol Draft: Difference between revisions

→‎Device Pairing: update detail for device pairing
(→‎Establish Control Channel: provide details of establishing control channel)
(→‎Device Pairing: update detail for device pairing)
Line 65: Line 65:


=== Device Pairing ===
=== Device Pairing ===
* STEP 1: server display a passcode and send challenge command to client, after receiving connect command
* STEP 2: client display passcode input and wait for user typing the same passcode
* STEP 3: client and server use the passcode to initiate J-PAKE procedure
** STEP 3a: client and server exchange the round 1 information
** STEP 3b: client and server exchange the round 2 information, and compute session key
* STEP 4: client send verify command with H(H(key)) to server
* STEP 5: server verify the H(H(key)) and send H(key) to client
* STEP 6: client and server can use key to encrypt following control message and provide H(key) as auth token.
[[File:Draft Protocol Device Pairing.png]]
=== Establish Control Channel ===
=== Establish Control Channel ===
Simply establish a TCP socket to the service port received during service discovery
Simply establish a TCP socket to the service port received during service discovery
Confirmed users
216

edits