ObjFW  Diff

Differences From Artifact [7b8e83201a]:

To Artifact [56ee04101c]:


22
23
24
25
26
27
28
29
30


31
32
33
34


35
36

37
38
39
40
41


42
43

44
45
46
22
23
24
25
26
27
28


29
30
31
32


33
34
35

36
37
38
39


40
41
42

43
44
45
46







-
-
+
+


-
-
+
+

-
+



-
-
+
+

-
+



extern "C" {
#endif
extern int _OFDataArray_Hashing_reference;
#ifdef __cplusplus
}
#endif

/**
 * \brief A category which provides methods to calculate hashes for data arrays.
/*!
 * @brief A category which provides methods to calculate hashes for data arrays.
 */
@interface OFDataArray (Hashing)
/**
 * \brief Returns the MD5 hash of the data array as an autoreleased OFString.
/*!
 * @brief Returns the MD5 hash of the data array as an autoreleased OFString.
 *
 * \return The MD5 hash of the data array as an autoreleased OFString
 * @return The MD5 hash of the data array as an autoreleased OFString
 */
- (OFString*)MD5Hash;

/**
 * \brief Returns the SHA-1 hash of the data array as an autoreleased OFString.
/*!
 * @brief Returns the SHA-1 hash of the data array as an autoreleased OFString.
 *
 * \return The SHA-1 hash of the data array as an autoreleased OFString
 * @return The SHA-1 hash of the data array as an autoreleased OFString
 */
- (OFString*)SHA1Hash;
@end