mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
Objective-C
38 lines
1.2 KiB
Objective-C
//
|
|
// BobAxolotlParameters.m
|
|
// AxolotlKit
|
|
//
|
|
// Created by Frederic Jacobs on 26/07/14.
|
|
// Copyright (c) 2014 Frederic Jacobs. All rights reserved.
|
|
//
|
|
|
|
#import "BobAxolotlParameters.h"
|
|
#import <SignalCoreKit/OWSAsserts.h>
|
|
|
|
@implementation BobAxolotlParameters
|
|
|
|
@synthesize theirIdentityKey=_theirIdentityKey, ourIdentityKeyPair=_ourIdentityKeyPair;
|
|
|
|
- (instancetype)initWithMyIdentityKeyPair:(ECKeyPair*)ourIdentityKeyPair theirIdentityKey:(NSData*)theirIdentityKey ourSignedPrekey:(ECKeyPair*)ourSignedPrekey ourRatchetKey:(ECKeyPair*)ourRatchetKey ourOneTimePrekey:(ECKeyPair*)ourOneTimeKeyPair theirBaseKey:(NSData*)theirBaseKey{
|
|
|
|
OWSAssert(ourIdentityKeyPair);
|
|
OWSAssert(theirIdentityKey);
|
|
OWSAssert(ourSignedPrekey);
|
|
OWSAssert(ourRatchetKey);
|
|
OWSAssert(theirBaseKey);
|
|
|
|
self = [super init];
|
|
|
|
if (self) {
|
|
_ourIdentityKeyPair = ourIdentityKeyPair;
|
|
_theirIdentityKey = theirIdentityKey;
|
|
_ourSignedPrekey = ourSignedPrekey;
|
|
_ourRatchetKey = ourRatchetKey;
|
|
_ourOneTimePrekey = ourOneTimeKeyPair;
|
|
_theirBaseKey = theirBaseKey;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|