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.
44 lines
753 B
C
44 lines
753 B
C
11 years ago
|
//
|
||
11 years ago
|
// SignalKeyingStorage.h
|
||
11 years ago
|
// Signal
|
||
|
//
|
||
|
// Created by Frederic Jacobs on 09/07/14.
|
||
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import "PhoneNumber.h"
|
||
|
#import "Zid.h"
|
||
|
|
||
11 years ago
|
@interface SignalKeyingStorage : NSObject
|
||
11 years ago
|
|
||
11 years ago
|
+(void)generateSignaling;
|
||
|
+(void)generateServerAuthPassword;
|
||
|
|
||
11 years ago
|
+(void)wipeKeychain;
|
||
|
|
||
|
#pragma mark Registered Phone Number
|
||
|
|
||
|
+(PhoneNumber*)localNumber;
|
||
|
+(void)setLocalNumberTo:(PhoneNumber*)localNumber;
|
||
|
|
||
|
#pragma mark Signaling Key
|
||
|
|
||
|
+(int64_t)getAndIncrementOneTimeCounter;
|
||
|
|
||
|
#pragma mark Zid
|
||
|
|
||
|
+(Zid*)zid;
|
||
|
|
||
|
#pragma mark Server Auth
|
||
|
|
||
|
+(NSString*)serverAuthPassword;
|
||
|
|
||
|
#pragma mark Signaling
|
||
|
|
||
|
+(NSData*)signalingMacKey;
|
||
|
+(NSData*)signalingCipherKey;
|
||
|
+(NSData*)signalingExtraKey;
|
||
|
|
||
|
@end
|