SignalProtocolKit/AxolotlKit/Classes/Utility/SerializationUtilities.h
Michael Kirk 9fe0f6c7fc Framework friendly
- Adapt to Curve25519Kit renaming
- Move non-modular CommonCrypto.h into .m files

// FREEBIE
2016-10-25 15:44:48 -04:00

24 lines
591 B
Objective-C

//
// SerializationUtilities.h
// AxolotlKit
//
// Created by Frederic Jacobs on 26/10/14.
// Copyright (c) 2014 Frederic Jacobs. All rights reserved.
//
#import <Foundation/Foundation.h>
#define MAC_LENGTH 8
@interface SerializationUtilities : NSObject
+ (int)highBitsToIntFromByte:(Byte)byte;
+ (int)lowBitsToIntFromByte:(Byte)byte;
+ (Byte)intsToByteHigh:(int)highValue low:(int)lowValue;
+ (NSData*)macWithVersion:(int)version identityKey:(NSData*)senderIdentityKey receiverIdentityKey:(NSData*)receiverIdentityKey macKey:(NSData*)macKey serialized:(NSData*)serialized;
@end