-
Notifications
You must be signed in to change notification settings - Fork 13
/
Kdb3Reader.h
48 lines (36 loc) · 868 Bytes
/
Kdb3Reader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// Kdb3.h
// KeePass
//
// Created by Qiang Yu on 11/22/09.
// Copyright 2009 Qiang Yu. All rights reserved.
//
/**
* KDB3 Support
*/
#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonCryptor.h>
#import "Kdb.h"
#import "Kdb3Node.h"
#import "KdbReader.h"
#import "WrapperNSData.h"
#import "KdbPassword.h"
#define FLAG_SHA2 1
#define FLAG_RIJNDAEL 2
#define FLAG_ARCFOUR 4
#define KDB3_VER (0x00030002)
#define KDB3_HEADER_SIZE (124)
/**
* Read a kdb3 file into a memory tree
*/
@interface Kdb3Reader:NSObject<KdbReader>{
uint32_t _numGroups, _numEntries;
uint8_t _contentHash[32];
uint8_t _encryptionIV[16];
KdbPassword * _password;
id<KdbTree> _tree;
}
@property(nonatomic, retain) id<KdbTree> _tree;
-(id<KdbTree>)load:(WrapperNSData *)input withPassword:(NSString *)password;
@end