6 #ifndef SecRecoveryKey_h
7 #define SecRecoveryKey_h
9 #include <Security/Security.h>
11 @
class SecRecoveryKey
;
13 typedef struct __SecRecoveryKey SecRecoveryKey
;
17 SecRKRegisterBackupPublicKey(SecRecoveryKey
*rk
, CFErrorRef
*error
);
22 * Constants for the verifier dictionary returned from SecRKCopyAccountRecoveryVerifier
25 extern NSString
*const kSecRVSalt
;
26 extern NSString
*const kSecRVIterations
;
27 extern NSString
*const kSecRVProtocol
;
28 extern NSString
*const kSecRVVerifier
;
29 extern NSString
*const kSecRVMasterID
;
33 SecRKCreateRecoveryKey(NSString
*recoveryKey
);
36 SecRKCreateRecoveryKeyWithError(NSString
*masterKey
, NSError
**error
);
39 SecRKCreateRecoveryKeyString(NSError
**error
);
42 SecRKCopyAccountRecoveryPassword(SecRecoveryKey
*rk
);
45 SecRKCopyBackupFullKey(SecRecoveryKey
*rk
);
48 SecRKCopyBackupPublicKey(SecRecoveryKey
*rk
);
51 SecRKCopyAccountRecoveryVerifier(NSString
*recoveryKey
,
57 SecRKCreateRecoveryKey(CFStringRef recoveryKey
);
60 SecRKCopyBackupFullKey(SecRecoveryKey
*rk
);
63 SecRKCopyBackupPublicKey(SecRecoveryKey
*rk
);