@@ -784,6 +784,9 @@ static psa_hash_operation_t psa_hash_operation_init(void);
784
784
* Success.
785
785
* \retval #PSA_ERROR_NOT_SUPPORTED
786
786
* \p alg is not supported or is not a hash algorithm.
787
+ * \retval #PSA_ERROR_BAD_STATE
788
+ * The operation state is not valid (already set up and not
789
+ * subsequently completed).
787
790
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
788
791
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
789
792
* \retval #PSA_ERROR_HARDWARE_FAILURE
@@ -1023,6 +1026,9 @@ static psa_mac_operation_t psa_mac_operation_init(void);
1023
1026
* \retval #PSA_ERROR_HARDWARE_FAILURE
1024
1027
* \retval #PSA_ERROR_TAMPERING_DETECTED
1025
1028
* \retval #PSA_ERROR_BAD_STATE
1029
+ * The operation state is not valid (already set up and not
1030
+ * subsequently completed).
1031
+ * \retval #PSA_ERROR_BAD_STATE
1026
1032
* The library has not been previously initialized by psa_crypto_init().
1027
1033
* It is implementation-dependent whether a failure to initialize
1028
1034
* results in this error code.
@@ -1080,6 +1086,9 @@ psa_status_t psa_mac_sign_setup(psa_mac_operation_t *operation,
1080
1086
* \retval #PSA_ERROR_HARDWARE_FAILURE
1081
1087
* \retval #PSA_ERROR_TAMPERING_DETECTED
1082
1088
* \retval #PSA_ERROR_BAD_STATE
1089
+ * The operation state is not valid (already set up and not
1090
+ * subsequently completed).
1091
+ * \retval #PSA_ERROR_BAD_STATE
1083
1092
* The library has not been previously initialized by psa_crypto_init().
1084
1093
* It is implementation-dependent whether a failure to initialize
1085
1094
* results in this error code.
@@ -1325,6 +1334,9 @@ static psa_cipher_operation_t psa_cipher_operation_init(void);
1325
1334
* \retval #PSA_ERROR_HARDWARE_FAILURE
1326
1335
* \retval #PSA_ERROR_TAMPERING_DETECTED
1327
1336
* \retval #PSA_ERROR_BAD_STATE
1337
+ * The operation state is not valid (already set up and not
1338
+ * subsequently completed).
1339
+ * \retval #PSA_ERROR_BAD_STATE
1328
1340
* The library has not been previously initialized by psa_crypto_init().
1329
1341
* It is implementation-dependent whether a failure to initialize
1330
1342
* results in this error code.
@@ -1384,6 +1396,9 @@ psa_status_t psa_cipher_encrypt_setup(psa_cipher_operation_t *operation,
1384
1396
* \retval #PSA_ERROR_HARDWARE_FAILURE
1385
1397
* \retval #PSA_ERROR_TAMPERING_DETECTED
1386
1398
* \retval #PSA_ERROR_BAD_STATE
1399
+ * The operation state is not valid (already set up and not
1400
+ * subsequently completed).
1401
+ * \retval #PSA_ERROR_BAD_STATE
1387
1402
* The library has not been previously initialized by psa_crypto_init().
1388
1403
* It is implementation-dependent whether a failure to initialize
1389
1404
* results in this error code.
0 commit comments