]> git.saurik.com Git - apple/security.git/blob - OSX/sec/Security/SecRecoveryKey.h
Security-57740.51.3.tar.gz
[apple/security.git] / OSX / sec / Security / SecRecoveryKey.h
1 //
2 // SecRecoveryKey.h
3 //
4 //
5
6 #ifndef SecRecoveryKey_h
7 #define SecRecoveryKey_h
8
9 #include <Security/Security.h>
10
11 #if __OBJC__
12 @class SecRecoveryKey;
13 #else
14 typedef struct __SecRecoveryKey SecRecoveryKey;
15 #endif
16
17 bool
18 SecRKRegisterBackupPublicKey(SecRecoveryKey *rk, CFErrorRef *error);
19
20 #if __OBJC__
21
22 SecRecoveryKey *
23 SecRKCreateRecoveryKey(NSString *recoveryKey);
24
25 NSString *
26 SecRKCreateRecoveryKeyString(NSError **error);
27
28 NSString *
29 SecRKCopyAccountRecoveryPassword(SecRecoveryKey *rk);
30
31 NSData *
32 SecRKCopyBackupFullKey(SecRecoveryKey *rk);
33
34 NSData *
35 SecRKCopyBackupPublicKey(SecRecoveryKey *rk);
36
37 #else
38
39 SecRecoveryKey *
40 SecRKCreateRecoveryKey(CFStringRef recoveryKey);
41
42 CFDataRef
43 SecRKCopyBackupFullKey(SecRecoveryKey *rk);
44
45 CFDataRef
46 SecRKCopyBackupPublicKey(SecRecoveryKey *rk);
47
48 #endif
49
50 #endif