Function esp_idf_hal::sys::psa_key_derivation_abort
source ยท pub unsafe extern "C" fn psa_key_derivation_abort(
operation: *mut psa_key_derivation_s,
) -> i32
Expand description
Abort a key derivation operation.
Aborting an operation frees all associated resources except for the \c operation structure itself. Once aborted, the operation object can be reused for another operation by calling psa_key_derivation_setup() again.
This function may be called at any time after the operation object has been initialized as described in #psa_key_derivation_operation_t.
In particular, it is valid to call psa_key_derivation_abort() twice, or to call psa_key_derivation_abort() on an operation that has not been set up.
\param[in,out] operation The operation to abort.
\retval #PSA_SUCCESS \emptydescription \retval #PSA_ERROR_COMMUNICATION_FAILURE \emptydescription \retval #PSA_ERROR_HARDWARE_FAILURE \emptydescription \retval #PSA_ERROR_CORRUPTION_DETECTED \emptydescription \retval #PSA_ERROR_BAD_STATE The library has not been previously initialized by psa_crypto_init(). It is implementation-dependent whether a failure to initialize results in this error code.