]> git.saurik.com Git - apple/security.git/blob - keychain/ot/OTFetchCKKSKeysOperation.h
Security-59754.41.1.tar.gz
[apple/security.git] / keychain / ot / OTFetchCKKSKeysOperation.h
1
2 #if OCTAGON
3
4 #import <Foundation/Foundation.h>
5 #import <dispatch/dispatch.h>
6
7 #import "keychain/ckks/CKKSGroupOperation.h"
8 #import "keychain/ckks/CKKSKeychainBackedKey.h"
9 #import "keychain/ot/OTOperationDependencies.h"
10 #import "keychain/ckks/CKKSTLKShare.h"
11 #import "keychain/ckks/CKKSKeychainView.h"
12
13 NS_ASSUME_NONNULL_BEGIN
14
15 @interface OTFetchCKKSKeysOperation : CKKSGroupOperation
16
17 @property NSArray<CKKSKeychainBackedKeySet*>* viewKeySets;
18
19 // This contains all key sets which couldn't be converted to CKKSKeychainBackedKeySet, due to some error
20 @property NSArray<CKKSCurrentKeySet*>* incompleteKeySets;
21
22 // Any existing TLKShares
23 @property NSArray<CKKSTLKShare*>* tlkShares;
24
25 // Any new TLKShares that CKKS suggested we upload along with this keyset
26 @property NSArray<CKKSTLKShare*>* pendingTLKShares;
27
28 // Any views that didn't provide a keyset within time
29 @property NSSet<NSString*>* viewsTimedOutWithoutKeysets;
30
31 // Set this to configure how long to wait for CKKS to resonse
32 @property dispatch_time_t desiredTimeout;
33
34 - (instancetype)initWithDependencies:(OTOperationDependencies*)dependencies
35 refetchNeeded:(BOOL)refetchNeeded;
36 ;
37 - (instancetype)initWithViews:(NSSet<CKKSKeychainView*>*)views;
38 @end
39
40 NS_ASSUME_NONNULL_END
41
42 #endif // OCTAGON