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.
		
		
		
		
		
			
		
			
	
	
		
			28 lines
		
	
	
		
			698 B
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			28 lines
		
	
	
		
			698 B
		
	
	
	
		
			C
		
	
| 
											5 years ago
										 | //
 | ||
|  | //  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | ||
|  | //
 | ||
|  | 
 | ||
|  | #import <Foundation/Foundation.h>
 | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_BEGIN | ||
|  | 
 | ||
|  | #define MAC_LENGTH 8
 | ||
|  | 
 | ||
|  | @interface SerializationUtilities : NSObject | ||
|  | 
 | ||
|  | + (int)highBitsToIntFromByte:(Byte)byte; | ||
|  | 
 | ||
|  | + (int)lowBitsToIntFromByte:(Byte)byte; | ||
|  | 
 | ||
|  | + (Byte)intsToByteHigh:(int)highValue low:(int)lowValue; | ||
|  | 
 | ||
|  | + (NSData *)throws_macWithVersion:(int)version | ||
|  |                       identityKey:(NSData *)senderIdentityKey | ||
|  |               receiverIdentityKey:(NSData *)receiverIdentityKey | ||
|  |                            macKey:(NSData *)macKey | ||
|  |                        serialized:(NSData *)serialized NS_SWIFT_UNAVAILABLE("throws objc exceptions"); | ||
|  | 
 | ||
|  | @end | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_END |