1 // This file was automatically generated by protocompiler
3 // Compiled from SecDbKeychainSerializedItemV7.proto
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
8 typedef NS_ENUM(int32_t, SecDbKeychainSerializedItemV7_Keyclass
) {
9 SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_AK
= 6,
10 SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_CK
= 7,
11 SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_DK
= 8,
12 SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_AKU
= 9,
13 SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_CKU
= 10,
14 SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_DKU
= 11,
15 SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_AKPU
= 12,
18 NS_INLINE NSString
*SecDbKeychainSerializedItemV7_KeyclassAsString(SecDbKeychainSerializedItemV7_Keyclass value
)
22 case SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_AK
: return @
"KEYCLASS_AK";
23 case SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_CK
: return @
"KEYCLASS_CK";
24 case SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_DK
: return @
"KEYCLASS_DK";
25 case SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_AKU
: return @
"KEYCLASS_AKU";
26 case SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_CKU
: return @
"KEYCLASS_CKU";
27 case SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_DKU
: return @
"KEYCLASS_DKU";
28 case SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_AKPU
: return @
"KEYCLASS_AKPU";
29 default: return [NSString stringWithFormat
:@
"(unknown: %i)", value
];
34 NS_INLINE SecDbKeychainSerializedItemV7_Keyclass
StringAsSecDbKeychainSerializedItemV7_Keyclass(NSString
*value
)
36 if ([value isEqualToString
:@
"KEYCLASS_AK"]) return SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_AK
;
37 if ([value isEqualToString
:@
"KEYCLASS_CK"]) return SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_CK
;
38 if ([value isEqualToString
:@
"KEYCLASS_DK"]) return SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_DK
;
39 if ([value isEqualToString
:@
"KEYCLASS_AKU"]) return SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_AKU
;
40 if ([value isEqualToString
:@
"KEYCLASS_CKU"]) return SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_CKU
;
41 if ([value isEqualToString
:@
"KEYCLASS_DKU"]) return SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_DKU
;
42 if ([value isEqualToString
:@
"KEYCLASS_AKPU"]) return SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_AKPU
;
43 return SecDbKeychainSerializedItemV7_Keyclass_KEYCLASS_AK
;
48 #define SECDBKEYCHAINSERIALIZEDITEMV7_FUNCTION extern "C"
50 #define SECDBKEYCHAINSERIALIZEDITEMV7_FUNCTION extern
53 @interface SecDbKeychainSerializedItemV7
: PBCodable
<NSCopying
>
55 NSData
*_encryptedMetadata
;
56 NSData
*_encryptedSecretData
;
57 SecDbKeychainSerializedItemV7_Keyclass _keyclass
;
61 @
property (nonatomic
, retain
) NSData
*encryptedSecretData
;
63 @
property (nonatomic
, retain
) NSData
*encryptedMetadata
;
65 @
property (nonatomic
) SecDbKeychainSerializedItemV7_Keyclass keyclass
;
66 - (NSString
*)keyclassAsString
:(SecDbKeychainSerializedItemV7_Keyclass
)value
;
67 - (SecDbKeychainSerializedItemV7_Keyclass
)StringAsKeyclass
:(NSString
*)str
;
69 // Performs a shallow copy into other
70 - (void)copyTo
:(SecDbKeychainSerializedItemV7
*)other
;
72 // Performs a deep merge from other into self
73 // If set in other, singular values in self are replaced in self
74 // Singular composite values are recursively merged
75 // Repeated values from other are appended to repeated values in self
76 - (void)mergeFrom
:(SecDbKeychainSerializedItemV7
*)other
;
78 SECDBKEYCHAINSERIALIZEDITEMV7_FUNCTION BOOL
SecDbKeychainSerializedItemV7ReadFrom(__unsafe_unretained SecDbKeychainSerializedItemV7
*self
, __unsafe_unretained PBDataReader
*reader
);