19 OF_ASSUME_NONNULL_BEGIN
27 #ifdef OF_HAVE_PROPERTIES
28 @property (readonly, getter=
isCalculated)
bool calculated;
58 - (void)updateWithBuffer: (const
void*)buffer
59 length: (
size_t)length;
69 - (const uint8_t*)
digest OF_RETURNS_INNER_POINTER;
instancetype hash()
Creates a new hash.
The root class for all other classes inside ObjFW.
Definition: OFObject.h:364
size_t digestSize()
Returns the digest size of the hash, in bytes.
void reset()
Resets all state so that a new hash can be calculated.
A protocol for classes providing hash functions.
Definition: OFHash.h:26
const uint8_t * digest()
Returns a buffer containing the hash.
bool isCalculated()
Returns a boolean whether the hash has already been calculated.
size_t blockSize()
Returns the block size of the hash, in bytes.