2018-08-23 08:19:25 +00:00
|
|
|
//
|
|
|
|
// CryptoAEAD.h
|
2018-08-23 10:07:55 +00:00
|
|
|
// TunnelKit
|
2018-08-23 08:19:25 +00:00
|
|
|
//
|
|
|
|
// Created by Davide De Rosa on 06/07/2018.
|
|
|
|
// Copyright © 2018 London Trust Media. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#import "Encryption.h"
|
|
|
|
#import "DataPathEncryption.h"
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface CryptoAEAD : NSObject <Encrypter, Decrypter>
|
|
|
|
|
|
|
|
@property (nonatomic, assign) int extraLength;
|
|
|
|
|
|
|
|
- (instancetype)initWithCipherName:(nonnull NSString *)cipherName;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface DataPathCryptoAEAD : NSObject <DataPathEncrypter, DataPathDecrypter>
|
|
|
|
|
|
|
|
@property (nonatomic, assign) uint32_t peerId;
|
2018-08-17 09:02:45 +00:00
|
|
|
@property (nonatomic, assign) BOOL LZOFraming DEPRECATED_ATTRIBUTE;
|
2018-08-23 08:19:25 +00:00
|
|
|
|
|
|
|
- (instancetype)initWithCrypto:(nonnull CryptoAEAD *)crypto;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|