@@ -23,10 +23,14 @@ @interface OFHash: OFObject { BOOL calculated; } +#ifdef OF_HAVE_PROPERTIES +@property (readonly) BOOL calculated; +#endif + /** * Adds a buffer to the hash to be calculated. * * \param buf The buffer which should be included into the calculation. * \param size The size of the buffer @@ -37,10 +41,15 @@ /** * \return A buffer containing the hash. The size of the buffer is depending * on the hash used. The buffer is part of object's memory pool. */ - (uint8_t*)digest; + +/** + * \return A boolean whether the hash has already been calculated + */ +- (BOOL)calculated; @end /** * \brief A class which provides functions to create an MD5 hash. */