22OF_ASSUME_NONNULL_BEGIN
34@protocol OFCryptographicHash <
OFObject, OFCopying>
35#ifdef OF_HAVE_CLASS_PROPERTIES
36@property (
class, readonly, nonatomic)
size_t digestSize;
37@property (
class, readonly, nonatomic)
size_t blockSize;
43@property (readonly, nonatomic)
size_t digestSize;
48@property (readonly, nonatomic)
size_t blockSize;
53@property (readonly, nonatomic)
bool allowsSwappableMemory;
58@property (readonly, nonatomic, getter=isCalculated)
bool calculated;
68@property (readonly, nonatomic)
const unsigned char *digest
69 OF_RETURNS_INNER_POINTER;
76+ (instancetype)hashWithAllowsSwappableMemory: (
bool)allowsSwappableMemory;
97- (instancetype)initWithAllowsSwappableMemory: (
bool)allowsSwappableMemory;
99- (instancetype)init OF_UNAVAILABLE;
108- (void)updateWithBuffer: (const
void *)buffer length: (
size_t)length;
The root class for all other classes inside ObjFW.
Definition OFObject.h:692