canmove, Confirmed users
725
edits
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
== Failure modes == | == Failure modes == | ||
=== jpake.error.invalid (Invalid | === jpake.error.invalid (Invalid message) === | ||
Reported when an malformed message is received. A malformed message is one that doesn't correctly parse as JSON. | Reported when an malformed message is received. A malformed message is one that doesn't correctly parse as JSON. | ||
=== jpake.error.wrongmessage (Wrong | === jpake.error.wrongmessage (Wrong message) === | ||
Reported when the wrong message is received, as identified by the <code>type</code> property in the JSON blob. | Reported when the wrong message is received, as identified by the <code>type</code> property in the JSON blob. | ||
| Line 17: | Line 17: | ||
=== jpake.error.keymismatch (Key mismatch) === | === jpake.error.keymismatch (Key mismatch) === | ||
Reported when the SHA256d or HMAC verification fails. | Reported when the SHA256d or HMAC verification fails, in other words when the PIN wasn't entered correctly and both sides ended up with different keys. | ||
=== jpake.error.server (Unexpected Server Response) === | === jpake.error.server (Unexpected Server Response) === | ||
Reported when unexpected HTTP response from the JPAKE server is received. | Reported when unexpected HTTP response from the JPAKE server is received. | ||