]> git.saurik.com Git - apple/security.git/blob - keychain/securityd/SecDbBackupManager-protobufs/generated_source/SecDbBackupKeyClassSigningKey.h
Security-59754.80.3.tar.gz
[apple/security.git] / keychain / securityd / SecDbBackupManager-protobufs / generated_source / SecDbBackupKeyClassSigningKey.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 #ifdef __cplusplus
9 #define SECDBBACKUPKEYCLASSSIGNINGKEY_FUNCTION extern "C"
10 #else
11 #define SECDBBACKUPKEYCLASSSIGNINGKEY_FUNCTION extern
12 #endif
13
14 /** Insert into backupkeyclasssigningkeys table, v12_keyClassSigningKey column */
15 @interface SecDbBackupKeyClassSigningKey : PBCodable <NSCopying>
16 {
17 NSData *_aksRefKey;
18 NSData *_aksWrappedKey;
19 NSData *_backupWrappedKey;
20 int32_t _keyClass;
21 NSData *_publicKey;
22 struct {
23 int keyClass:1;
24 } _has;
25 }
26
27
28 @property (nonatomic) BOOL hasKeyClass;
29 @property (nonatomic) int32_t keyClass;
30
31 @property (nonatomic, readonly) BOOL hasPublicKey;
32 @property (nonatomic, retain) NSData *publicKey;
33
34 @property (nonatomic, readonly) BOOL hasAksRefKey;
35 /** Contains bag identity as authenticated data */
36 @property (nonatomic, retain) NSData *aksRefKey;
37
38 @property (nonatomic, readonly) BOOL hasAksWrappedKey;
39 /** SFECIESKeyPair wrapped by AKS ref key */
40 @property (nonatomic, retain) NSData *aksWrappedKey;
41
42 @property (nonatomic, readonly) BOOL hasBackupWrappedKey;
43 /** SFECIESKeyPair wrapped by KCSKSecret in RecoverySet. Also authenticates bag identity */
44 @property (nonatomic, retain) NSData *backupWrappedKey;
45
46 // Performs a shallow copy into other
47 - (void)copyTo:(SecDbBackupKeyClassSigningKey *)other;
48
49 // Performs a deep merge from other into self
50 // If set in other, singular values in self are replaced in self
51 // Singular composite values are recursively merged
52 // Repeated values from other are appended to repeated values in self
53 - (void)mergeFrom:(SecDbBackupKeyClassSigningKey *)other;
54
55 SECDBBACKUPKEYCLASSSIGNINGKEY_FUNCTION BOOL SecDbBackupKeyClassSigningKeyReadFrom(__unsafe_unretained SecDbBackupKeyClassSigningKey *self, __unsafe_unretained PBDataReader *reader);
56
57 @end
58