@@ -1095,6 +1095,15 @@ psa_status_t psa_hash_verify(psa_hash_operation_t *operation,
1095
1095
psa_status_t psa_hash_abort (psa_hash_operation_t * operation );
1096
1096
1097
1097
/** Clone a hash operation.
1098
+ *
1099
+ * This function copies the state of an ongoing hash operation to
1100
+ * a new operation object. In other words, this function is equivalent
1101
+ * to calling psa_hash_setup() on \p target_operation with the same
1102
+ * algorithm that \p source_operation was set up for, then
1103
+ * psa_hash_update() on \p target_operation with the same input that
1104
+ * that was passed to \p source_operation. After this function returns, the
1105
+ * two objects are independent, i.e. subsequent calls involving one of
1106
+ * the objects do not affect the other object.
1098
1107
*
1099
1108
* \param[in] source_operation The active hash operation to clone.
1100
1109
* \param[in,out] target_operation The operation object to set up.
@@ -1104,7 +1113,7 @@ psa_status_t psa_hash_abort(psa_hash_operation_t *operation);
1104
1113
* \retval #PSA_ERROR_BAD_STATE
1105
1114
* \p source_operation is not an active hash operation.
1106
1115
* \retval #PSA_ERROR_BAD_STATE
1107
- * \p source_operation is active.
1116
+ * \p target_operation is active.
1108
1117
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
1109
1118
* \retval #PSA_ERROR_HARDWARE_FAILURE
1110
1119
* \retval #PSA_ERROR_TAMPERING_DETECTED
0 commit comments