Skip to content

Commit 531a429

Browse files
committed
Fix: missing BAD_STATE errors in iop setup functions
1 parent 916d0a1 commit 531a429

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/crypto/api/ops/signature.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,11 @@ An interruptible asymmetric signature operation is used as follows:
761761

762762
* ``alg`` is not an asymmetric signature algorithm.
763763
* ``key`` is not an asymmetric key pair, that is compatible with ``alg``.
764+
.. retval:: PSA_ERROR_BAD_STATE
765+
The following conditions can result in this error:
766+
767+
* The operation state is not valid: it must be inactive.
768+
* The library requires initializing by a call to `psa_crypto_init()`.
764769
.. retval:: PSA_ERROR_INSUFFICIENT_MEMORY
765770
.. retval:: PSA_ERROR_COMMUNICATION_FAILURE
766771
.. retval:: PSA_ERROR_CORRUPTION_DETECTED
@@ -1113,6 +1118,11 @@ An interruptible asymmetric verification operation is used as follows:
11131118
* ``alg`` is not an asymmetric signature algorithm.
11141119
* ``key`` is not an asymmetric key pair, or asymmetric public key, that is compatible with ``alg``.
11151120
* ``signature`` is not a valid signature for the algorithm and key.
1121+
.. retval:: PSA_ERROR_BAD_STATE
1122+
The following conditions can result in this error:
1123+
1124+
* The operation state is not valid: it must be inactive.
1125+
* The library requires initializing by a call to `psa_crypto_init()`.
11161126
.. retval:: PSA_ERROR_INVALID_SIGNATURE
11171127
``signature`` is not a valid signature for the algorithm and key.
11181128
.. retval:: PSA_ERROR_INSUFFICIENT_MEMORY

0 commit comments

Comments
 (0)