JubeatPlus 3.9.11
Loading...
Searching...
No Matches
BFCodec.h
Go to the documentation of this file.
1
16
17#import <Foundation/Foundation.h>
18
19NS_ASSUME_NONNULL_BEGIN
20
24@interface BFCodec : NSObject
25
31- (instancetype)init;
32
43- (void)cipherInit:(const char *)key length:(int)length;
44
54- (void)cipherInit:(nullable NSData *)key;
55
66- (unsigned int)encipher:(nullable NSMutableData *)data;
67
79- (BOOL)decipher:(nullable NSMutableData *)data;
80
85- (void)dealloc;
86
87@end
88
89NS_ASSUME_NONNULL_END
90
91// code: language=Objective-C
92// kate: hl Objective-C;
93// vim: set ft=objc :
A Blowfish cipher that works in place on an NSMutableData.
Definition BFCodec.h:25
void dealloc()
Wipes the chaining vector and releases the key schedule.
Definition BFCodec.mm:189
instancetype init()
Builds a codec with a zeroed chaining vector and a fresh key schedule.
Definition BFCodec.mm:48