17#import "OFCryptographicHash.h"
19OF_ASSUME_NONNULL_BEGIN
26OF_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;
69+ (instancetype)HMACWithHashClass: (Class <OFCryptographicHash>)hashClass
70 allowsSwappableMemory: (
bool)allowsSwappableMemory;
72- (instancetype)init OF_UNAVAILABLE;
82- (instancetype)initWithHashClass: (Class <OFCryptographicHash>)hashClass
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;
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