@@ -10,12 +10,12 @@ */ #import "OFObject.h" #import "OFString.h" -#define MD5_DIGEST_SIZE 16 -#define SHA1_DIGEST_SIZE 20 +#define OF_MD5_DIGEST_SIZE 16 +#define OF_SHA1_DIGEST_SIZE 20 extern int _OFHashing_reference; /** * The OFMD5Hash class provides functions to create an MD5 hash. @@ -44,11 +44,11 @@ */ - updateWithBuffer: (const char*)buf ofSize: (size_t)size; /** - * \return A buffer containing the hash (MD5_DIGEST_SIZE = 16 bytes). + * \return A buffer containing the hash (OF_MD5_DIGEST_SIZE = 16 bytes). * The buffer is part of object's memory pool. */ - (uint8_t*)digest; @end @@ -58,11 +58,11 @@ @interface OFSHA1Hash: OFObject { uint32_t state[5]; uint64_t count; char buffer[64]; - uint8_t digest[SHA1_DIGEST_SIZE]; + uint8_t digest[OF_SHA1_DIGEST_SIZE]; BOOL calculated; } /** @@ -80,11 +80,11 @@ */ - updateWithBuffer: (const char*)buf ofSize: (size_t)size; /** - * \return A buffer containing the hash (SHA1_DIGEST_SIZE = 20 bytes). + * \return A buffer containing the hash (OF_SHA1_DIGEST_SIZE = 20 bytes). * The buffer is part of object's memory pool. */ - (uint8_t*)digest; @end