mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
b42f528713
Also: * use system cookie parsing * add AESGCM additional authenticated data parameter // FREEBIE
44 lines
1.2 KiB
Objective-C
44 lines
1.2 KiB
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class ECKeyPair;
|
|
@class OWSAES256Key;
|
|
|
|
@interface RemoteAttestationKeys : NSObject
|
|
|
|
@property (nonatomic, readonly) ECKeyPair *keyPair;
|
|
@property (nonatomic, readonly) NSData *serverEphemeralPublic;
|
|
@property (nonatomic, readonly) NSData *serverStaticPublic;
|
|
|
|
@property (nonatomic, readonly) OWSAES256Key *clientKey;
|
|
@property (nonatomic, readonly) OWSAES256Key *serverKey;
|
|
|
|
@end
|
|
|
|
@interface RemoteAttestation : NSObject
|
|
|
|
@property (nonatomic, readonly) RemoteAttestationKeys *keys;
|
|
@property (nonatomic, readonly) NSArray<NSHTTPCookie *> *cookies;
|
|
@property (nonatomic, readonly) NSData *requestId;
|
|
@property (nonatomic, readonly) NSString *enclaveId;
|
|
@property (nonatomic, readonly) NSString *authUsername;
|
|
@property (nonatomic, readonly) NSString *authToken;
|
|
|
|
@end
|
|
|
|
@interface ContactDiscoveryService : NSObject
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
+ (instancetype)sharedService;
|
|
|
|
- (void)testService;
|
|
- (void)performRemoteAttestationWithSuccess:(void (^)(RemoteAttestation *_Nonnull remoteAttestation))successHandler
|
|
failure:(void (^)(NSError *_Nonnull error))failureHandler;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|