1 // This file was automatically generated by protocompiler
3 // Compiled from SecDbBackupRecoverySet.proto
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
8 @
class SecDbBackupBagIdentity
;
11 #define SECDBBACKUPRECOVERYSET_FUNCTION extern "C"
13 #define SECDBBACKUPRECOVERYSET_FUNCTION extern
17 * optional bytes aksWrappedMetadataKey = 3; // wrapped by device bag for daily use. Not in use right now.
18 * Insert into backuprecoverysets table, v12_recoverySet column
20 @interface SecDbBackupRecoverySet
: PBCodable
<NSCopying
>
22 SecDbBackupBagIdentity
*_bagIdentity
;
23 int32_t _recoveryType
;
24 NSData
*_wrappedBagSecret
;
25 NSData
*_wrappedKCSKSecret
;
26 NSData
*_wrappedRecoveryKey
;
33 @
property (nonatomic
) BOOL hasRecoveryType
;
34 @
property (nonatomic
) int32_t recoveryType
;
36 @
property (nonatomic
, readonly
) BOOL hasBagIdentity
;
37 @
property (nonatomic
, retain
) SecDbBackupBagIdentity
*bagIdentity
;
39 @
property (nonatomic
, readonly
) BOOL hasWrappedBagSecret
;
40 /** 'passphrase' to unlock backup bag's private keys */
41 @
property (nonatomic
, retain
) NSData
*wrappedBagSecret
;
43 @
property (nonatomic
, readonly
) BOOL hasWrappedKCSKSecret
;
44 /** recovers KCSKs to verify authenticity of IKs and MCKs */
45 @
property (nonatomic
, retain
) NSData
*wrappedKCSKSecret
;
47 @
property (nonatomic
, readonly
) BOOL hasWrappedRecoveryKey
;
48 /** wraps the above two secrets */
49 @
property (nonatomic
, retain
) NSData
*wrappedRecoveryKey
;
51 // Performs a shallow copy into other
52 - (void)copyTo
:(SecDbBackupRecoverySet
*)other
;
54 // Performs a deep merge from other into self
55 // If set in other, singular values in self are replaced in self
56 // Singular composite values are recursively merged
57 // Repeated values from other are appended to repeated values in self
58 - (void)mergeFrom
:(SecDbBackupRecoverySet
*)other
;
60 SECDBBACKUPRECOVERYSET_FUNCTION BOOL
SecDbBackupRecoverySetReadFrom(__unsafe_unretained SecDbBackupRecoverySet
*self
, __unsafe_unretained PBDataReader
*reader
);