mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
baaef78323
FREEBIE
22 lines
537 B
Objective-C
22 lines
537 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "KeyAgreementProtocol.h"
|
|
#import "CryptoTools.h"
|
|
|
|
#define DH3k_KEY_AGREEMENT_ID @"DH3k".encodedAsUtf8
|
|
|
|
/**
|
|
*
|
|
* DH3KKeyAgreementProtocol is used to generate participants for Diffie-Hellman key agreement.
|
|
*
|
|
**/
|
|
|
|
@interface DH3KKeyAgreementProtocol : NSObject <KeyAgreementProtocol> {
|
|
@private NSData* modulus;
|
|
@private NSData* generator;
|
|
}
|
|
|
|
+(DH3KKeyAgreementProtocol*) protocolWithModulus:(NSData*)modulus andGenerator:(NSData*)generator;
|
|
-(NSData*) getGenerator;
|
|
-(NSData*) getModulus;
|
|
|
|
@end
|