Skip to content

Commit 3c23093

Browse files
committed
Use correct error code.
1 parent 8c2f7fb commit 3c23093

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/crypto/api/ops/pake.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ J-PAKE requires both an application and a peer identity.
12331233
If the peer identity provided to `psa_pake_set_peer()` does not match the data received from the peer, then the call to `psa_pake_input()` for the `PSA_PAKE_STEP_ZK_PROOF` step will fail with :code:`PSA_ERROR_INVALID_SIGNATURE`.
12341234

12351235
J-PAKE does not use a context.
1236-
A call to `psa_pake_set_context()` for a J-PAKE operation will fail with :code:`PSA_ERROR_INVALID_ARGUMENT`.
1236+
A call to `psa_pake_set_context()` for a J-PAKE operation will fail with :code:`PSA_ERROR_BAD_STATE`.
12371237

12381238
The following steps demonstrate the application code for 'User' in :numref:`fig-jpake`. The code flow for the 'Peer' is the same as for 'User', as J-PAKE is a balanced PAKE.
12391239

0 commit comments

Comments
 (0)