85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
* \return A buffer containing the hash (SHA1_DIGEST_SIZE = 20 bytes).
* The buffer is part of object's memory pool.
*/
- (uint8_t*)digest;
@end
/**
* The OFHashing category provides methods to calculate hashes for strings.
*/
@interface OFString (OFHashing)
/**
* \return The MD5 hash of the string as an autoreleased OFString
*/
- (OFString*)md5Hash;
/**
* \return The SHA1 hash of the string as an autoreleased OFString
*/
- (OFString*)sha1Hash;
@end
|
|
>
|
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
* \return A buffer containing the hash (SHA1_DIGEST_SIZE = 20 bytes).
* The buffer is part of object's memory pool.
*/
- (uint8_t*)digest;
@end
/**
* The OFString (OFHashing) category provides methods to calculate hashes for
* strings.
*/
@interface OFString (OFHashing)
/**
* \return The MD5 hash of the string as an autoreleased OFString
*/
- (OFString*)md5Hash;
/**
* \return The SHA1 hash of the string as an autoreleased OFString
*/
- (OFString*)sha1Hash;
@end
|