@@ -922,6 +922,15 @@ psa_status_t psa_hash_verify(psa_hash_operation_t *operation,
922
922
psa_status_t psa_hash_abort (psa_hash_operation_t * operation );
923
923
924
924
/** Clone a hash operation.
925
+ *
926
+ * This function copies the state of an ongoing hash operation to
927
+ * a new operation object. In other words, this function is equivalent
928
+ * to calling psa_hash_setup() on \p target_operation with the same
929
+ * algorithm that \p source_operation was set up for, then
930
+ * psa_hash_update() on \p target_operation with the same input that
931
+ * that was passed to \p source_operation. After this function returns, the
932
+ * two objects are independent, i.e. subsequent calls involving one of
933
+ * the objects do not affect the other object.
925
934
*
926
935
* \param[in] source_operation The active hash operation to clone.
927
936
* \param[in,out] target_operation The operation object to set up.
@@ -931,7 +940,7 @@ psa_status_t psa_hash_abort(psa_hash_operation_t *operation);
931
940
* \retval #PSA_ERROR_BAD_STATE
932
941
* \p source_operation is not an active hash operation.
933
942
* \retval #PSA_ERROR_BAD_STATE
934
- * \p source_operation is active.
943
+ * \p target_operation is active.
935
944
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
936
945
* \retval #PSA_ERROR_HARDWARE_FAILURE
937
946
* \retval #PSA_ERROR_TAMPERING_DETECTED
0 commit comments