Added PSA_ERROR_BAD_STATE to functions with operations

In the case that the operation object has not been initialized
appropriately.
This commit is contained in:
Adrian L. Shaw 2019-08-08 14:49:01 +01:00
parent 97d3bc3674
commit 8f7cd1ee55

View file

@ -1162,6 +1162,8 @@ psa_status_t psa_hash_abort(psa_hash_operation_t *operation);
* \retval #PSA_ERROR_BAD_STATE * \retval #PSA_ERROR_BAD_STATE
* The operation state is either not initialized or has already been setup. * The operation state is either not initialized or has already been setup.
* \retval #PSA_ERROR_BAD_STATE * \retval #PSA_ERROR_BAD_STATE
* The operation state is either not initialized or has already been setup.
* \retval #PSA_ERROR_BAD_STATE
* The library has not been previously initialized by psa_crypto_init(). * The library has not been previously initialized by psa_crypto_init().
* It is implementation-dependent whether a failure to initialize * It is implementation-dependent whether a failure to initialize
* results in this error code. * results in this error code.