You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep the dynamic pairing code stable across retries within an attempt #201
In the Dynamic Pairing Code Flow one attempt is one PAKE round. A wrong entry ends the attempt, and the retry draws new nonces, so the device shows a different code.
Failure mode:
Speaker says "four eight three, nine two one".
Operator types 483912.
pair/abortpairing_code_mismatch. Attempt over.
Server sends a new pairing server/activate. Speaker says "two zero five, six six eight".
Operator listens again and types again. Five of these and the method is in backoff.
The code should not change when the operator mistypes.
Proposed change: allow multiple PAKE rounds within one attempt, code fixed.
After pairing_code_mismatch the attempt stays open. Server sends a fresh server/pair-auth, client answers client/pair-auth, round continues as before.
h, nonce_A, nonce_B, commit_B unchanged, so the code is unchanged. Client keeps showing it or re-speaks it.
sid gains a round counter: "sendspin-pair-pake-v1" || h || counter || round (uint32, from 0, +1 per server/pair-auth). K_wrap follows.
Failure counter still increments per failed round. Brute-force cost unchanged.
Attempt timeout still bounds the whole attempt.
Either pairing_code_mismatch becomes "round failed, attempt continues", or add a round_failed reason. Open.
nonce_B is only revealed after server_kc verifies, so a failed round never exposes it. Static code already retries with a fixed code inside a window; this aligns the two flows.
Activity
marcelveldt commentedon Sep 2, 2026
accepted
arturpragacz commentedon Sep 3, 2026
Right, I had this change locally at some point, but I wasn't sure if it's worth the added complexity.
The only difference: I made it its own message
pair/retryto keeppair/abortmeaning of attempt aborted.Keep the dynamic pairing code stable across retries within an attempt (…