21 #import "OFCryptographicHash.h" 23 OF_ASSUME_NONNULL_BEGIN
30 OF_SUBCLASSING_RESTRICTED
33 Class <OFCryptographicHash> _hashClass;
34 bool _allowsSwappableMemory;
35 id <OFCryptographicHash> _Nullable _outerHash, _innerHash;
36 id <OFCryptographicHash> _Nullable _outerHashCopy, _innerHashCopy;
43 @property (readonly, nonatomic) Class <OFCryptographicHash> hashClass;
48 @property (readonly, nonatomic)
bool allowsSwappableMemory;
58 @property (readonly, nonatomic)
const unsigned char *digest
59 OF_RETURNS_INNER_POINTER;
64 @property (readonly, nonatomic)
size_t digestSize;
74 allowsSwappableMemory: (
bool)allowsSwappableMemory;
76 - (instancetype)init OF_UNAVAILABLE;
87 allowsSwappableMemory: (
bool)allowsSwappableMemory
88 OF_DESIGNATED_INITIALIZER;
102 - (void)setKey: (const
void *)key length: (
size_t)length;
111 - (void)updateWithBuffer: (const
void *)buffer length: (
size_t)length;
142 OF_ASSUME_NONNULL_END
A class which provides methods to calculate an HMAC.
Definition: OFHMAC.h:31
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
A protocol for classes providing cryptographic hash functions.