@@ -20,12 +20,16 @@ /*! * @protocol OFCryptoHash OFCryptoHash.h ObjFW/OFCryptoHash.h * * @brief A protocol for classes providing cryptographic hash functions. + * + * A cryptographic hash implementing this protocol can be copied. The entire + * state is copied, allowing to calculate a new hash from there. This is + * especially useful for generating many hashes with a common prefix. */ -@protocol OFCryptoHash +@protocol OFCryptoHash /*! * A boolean whether the hash has already been calculated. */ @property (readonly, getter=isCalculated) bool calculated;