6 #ifndef SecRecoveryKey_h
7 #define SecRecoveryKey_h
9 #include <Security/Security.h>
12 @
class SecRecoveryKey
;
14 typedef struct __SecRecoveryKey SecRecoveryKey
;
18 SecRKRegisterBackupPublicKey(SecRecoveryKey
*rk
, CFErrorRef
*error
);
23 * Constants for the verifier dictionary returned from SecRKCopyAccountRecoveryVerifier
26 extern NSString
*const kSecRVSalt
;
27 extern NSString
*const kSecRVIterations
;
28 extern NSString
*const kSecRVProtocol
;
29 extern NSString
*const kSecRVVerifier
;
30 extern NSString
*const kSecRVMasterID
;
34 SecRKCreateRecoveryKey(NSString
*recoveryKey
);
37 SecRKCreateRecoveryKeyWithError(NSString
*masterKey
, NSError
**error
);
40 SecRKCreateRecoveryKeyString(NSError
**error
);
43 SecRKCopyAccountRecoveryPassword(SecRecoveryKey
*rk
);
46 SecRKCopyBackupFullKey(SecRecoveryKey
*rk
);
49 SecRKCopyBackupPublicKey(SecRecoveryKey
*rk
);
52 SecRKCopyAccountRecoveryVerifier(NSString
*recoveryKey
,
58 SecRKCreateRecoveryKey(CFStringRef recoveryKey
);
61 SecRKCopyBackupFullKey(SecRecoveryKey
*rk
);
64 SecRKCopyBackupPublicKey(SecRecoveryKey
*rk
);