Index: src/OFHash.h ================================================================== --- src/OFHash.h +++ src/OFHash.h @@ -22,10 +22,13 @@ * @protocol OFHash OFHash.h ObjFW/OFHash.h * * @brief A protocol for classes providing hash functions. */ @protocol OFHash +/*! + * A boolean whether the hash has already been calculated. + */ @property (readonly, getter=isCalculated) bool calculated; /*! * @brief Creates a new hash. * @@ -64,17 +67,10 @@ * * @return A buffer containing the hash */ - (const uint8_t*)digest OF_RETURNS_INNER_POINTER; -/*! - * @brief Returns a boolean whether the hash has already been calculated. - * - * @return A boolean whether the hash has already been calculated - */ -- (bool)isCalculated; - /*! * @brief Resets all state so that a new hash can be calculated. * * @warning This invalidates any pointer previously returned by @ref digest. If * you are still interested in the previous digest, you need to memcpy