]> git.saurik.com Git - apple/security.git/blob - keychain/securityd/SecDbBackupManager-protobufs/generated_source/SecDbBackupRecoverySet.h
Security-59306.41.2.tar.gz
[apple/security.git] / keychain / securityd / SecDbBackupManager-protobufs / generated_source / SecDbBackupRecoverySet.h
1 // This file was automatically generated by protocompiler
2 // DO NOT EDIT!
3 // Compiled from SecDbBackupRecoverySet.proto
4
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
7
8 @class SecDbBackupBagIdentity;
9
10 #ifdef __cplusplus
11 #define SECDBBACKUPRECOVERYSET_FUNCTION extern "C"
12 #else
13 #define SECDBBACKUPRECOVERYSET_FUNCTION extern
14 #endif
15
16 /**
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
19 */
20 @interface SecDbBackupRecoverySet : PBCodable <NSCopying>
21 {
22 SecDbBackupBagIdentity *_bagIdentity;
23 int32_t _recoveryType;
24 NSData *_wrappedBagSecret;
25 NSData *_wrappedKCSKSecret;
26 NSData *_wrappedRecoveryKey;
27 struct {
28 int recoveryType:1;
29 } _has;
30 }
31
32
33 @property (nonatomic) BOOL hasRecoveryType;
34 @property (nonatomic) int32_t recoveryType;
35
36 @property (nonatomic, readonly) BOOL hasBagIdentity;
37 @property (nonatomic, retain) SecDbBackupBagIdentity *bagIdentity;
38
39 @property (nonatomic, readonly) BOOL hasWrappedBagSecret;
40 /** 'passphrase' to unlock backup bag's private keys */
41 @property (nonatomic, retain) NSData *wrappedBagSecret;
42
43 @property (nonatomic, readonly) BOOL hasWrappedKCSKSecret;
44 /** recovers KCSKs to verify authenticity of IKs and MCKs */
45 @property (nonatomic, retain) NSData *wrappedKCSKSecret;
46
47 @property (nonatomic, readonly) BOOL hasWrappedRecoveryKey;
48 /** wraps the above two secrets */
49 @property (nonatomic, retain) NSData *wrappedRecoveryKey;
50
51 // Performs a shallow copy into other
52 - (void)copyTo:(SecDbBackupRecoverySet *)other;
53
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;
59
60 SECDBBACKUPRECOVERYSET_FUNCTION BOOL SecDbBackupRecoverySetReadFrom(__unsafe_unretained SecDbBackupRecoverySet *self, __unsafe_unretained PBDataReader *reader);
61
62 @end
63