Skip to content

Commit

Permalink
Fix: missing BAD_STATE errors in iop setup functions
Browse files Browse the repository at this point in the history
  • Loading branch information
athoelke committed Jun 18, 2024
1 parent 916d0a1 commit 531a429
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/crypto/api/ops/signature.rst
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,11 @@ An interruptible asymmetric signature operation is used as follows:

* ``alg`` is not an asymmetric signature algorithm.
* ``key`` is not an asymmetric key pair, that is compatible with ``alg``.
.. retval:: PSA_ERROR_BAD_STATE
The following conditions can result in this error:

* The operation state is not valid: it must be inactive.
* The library requires initializing by a call to `psa_crypto_init()`.
.. retval:: PSA_ERROR_INSUFFICIENT_MEMORY
.. retval:: PSA_ERROR_COMMUNICATION_FAILURE
.. retval:: PSA_ERROR_CORRUPTION_DETECTED
Expand Down Expand Up @@ -1113,6 +1118,11 @@ An interruptible asymmetric verification operation is used as follows:
* ``alg`` is not an asymmetric signature algorithm.
* ``key`` is not an asymmetric key pair, or asymmetric public key, that is compatible with ``alg``.
* ``signature`` is not a valid signature for the algorithm and key.
.. retval:: PSA_ERROR_BAD_STATE
The following conditions can result in this error:

* The operation state is not valid: it must be inactive.
* The library requires initializing by a call to `psa_crypto_init()`.
.. retval:: PSA_ERROR_INVALID_SIGNATURE
``signature`` is not a valid signature for the algorithm and key.
.. retval:: PSA_ERROR_INSUFFICIENT_MEMORY
Expand Down

0 comments on commit 531a429

Please sign in to comment.