21#import "OFCryptographicHash.h"
23OF_ASSUME_NONNULL_BEGIN
30OF_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;
73+ (instancetype)HMACWithHashClass: (Class <OFCryptographicHash>)hashClass
74 allowsSwappableMemory: (
bool)allowsSwappableMemory;
76- (instancetype)init OF_UNAVAILABLE;
86- (instancetype)initWithHashClass: (Class <OFCryptographicHash>)hashClass
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;
A class which provides methods to calculate an HMAC.
Definition OFHMAC.h:32
The root class for all other classes inside ObjFW.
Definition OFObject.h:692