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.
		
		
		
		
		
			
		
			
	
	
		
			21 lines
		
	
	
		
			689 B
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			689 B
		
	
	
	
		
			C
		
	
| 
											5 years ago
										 | //
 | ||
|  | //  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | ||
|  | //
 | ||
|  | 
 | ||
|  | #import <Foundation/Foundation.h>
 | ||
|  | 
 | ||
|  | @interface TSDerivedSecrets : NSData | ||
|  | 
 | ||
|  | + (instancetype)throws_derivedInitialSecretsWithMasterKey:(NSData *)masterKey | ||
|  |     NS_SWIFT_UNAVAILABLE("throws objc exceptions"); | ||
|  | + (instancetype)throws_derivedRatchetedSecretsWithSharedSecret:(NSData *)masterKey | ||
|  |                                                        rootKey:(NSData *)rootKey | ||
|  |     NS_SWIFT_UNAVAILABLE("throws objc exceptions"); | ||
|  | + (instancetype)throws_derivedMessageKeysWithData:(NSData *)data NS_SWIFT_UNAVAILABLE("throws objc exceptions"); | ||
|  | 
 | ||
|  | @property NSData *cipherKey; | ||
|  | @property NSData *macKey; | ||
|  | @property NSData *iv; | ||
|  | 
 | ||
|  | @end |