17 #import "OFCryptographicHash.h"
19 OF_ASSUME_NONNULL_BEGIN
26 OF_SUBCLASSING_RESTRICTED
29 Class <OFCryptographicHash> _hashClass;
30 bool _allowsSwappableMemory;
31 id <OFCryptographicHash> _Nullable _outerHash, _innerHash;
32 id <OFCryptographicHash> _Nullable _outerHashCopy, _innerHashCopy;
39 @property (readonly, nonatomic) Class <OFCryptographicHash> hashClass;
44 @property (readonly, nonatomic)
bool allowsSwappableMemory;
54 @property (readonly, nonatomic)
const unsigned char *digest
55 OF_RETURNS_INNER_POINTER;
60 @property (readonly, nonatomic)
size_t digestSize;
70 allowsSwappableMemory: (
bool)allowsSwappableMemory;
72 - (instancetype)init OF_UNAVAILABLE;
83 allowsSwappableMemory: (
bool)allowsSwappableMemory
84 OF_DESIGNATED_INITIALIZER;
98 - (void)setKey: (const
void *)key length: (
size_t)length;
107 - (void)updateWithBuffer: (const
void *)buffer length: (
size_t)length;
138 OF_ASSUME_NONNULL_END
A class which provides methods to calculate an HMAC.
Definition: OFHMAC.h:28
The root class for all other classes inside ObjFW.
Definition: OFObject.h:688
A protocol for classes providing cryptographic hash functions.
Definition: OFCryptographicHash.h:30