Compare commits

...

1 Commits

Author SHA1 Message Date
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
14 changed files with 16 additions and 17 deletions

View File

@ -6,7 +6,7 @@
// Copyright (c) 2014 Frederic Jacobs. All rights reserved. // Copyright (c) 2014 Frederic Jacobs. All rights reserved.
// //
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>

View File

@ -8,7 +8,7 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import "PreKeyRecord.h" #import "PreKeyRecord.h"
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
@interface SignedPreKeyRecord : PreKeyRecord <NSSecureCoding> @interface SignedPreKeyRecord : PreKeyRecord <NSSecureCoding>

View File

@ -1,6 +1,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
#import "ProtocolBuffers.h" #import <ProtocolBuffers/ProtocolBuffers.h>
// @@protoc_insertion_point(imports) // @@protoc_insertion_point(imports)

View File

@ -7,7 +7,7 @@
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
@protocol AxolotlParameters <NSObject> @protocol AxolotlParameters <NSObject>

View File

@ -7,7 +7,7 @@
// //
#import "RKCK.h" #import "RKCK.h"
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
#import "TSDerivedSecrets.h" #import "TSDerivedSecrets.h"
@implementation RKCK @implementation RKCK

View File

@ -13,7 +13,7 @@
#import "RootKey.h" #import "RootKey.h"
#import "SessionState.h" #import "SessionState.h"
#import <HKDFKit/HKDFKit.h> #import <HKDFKit/HKDFKit.h>
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
#import "ChainKey.h" #import "ChainKey.h"
@interface DHEResult : NSObject @interface DHEResult : NSObject

View File

@ -8,7 +8,7 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import "Chain.h" #import "Chain.h"
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
@interface ReceivingChain : NSObject <Chain, NSSecureCoding> @interface ReceivingChain : NSObject <Chain, NSSecureCoding>

View File

@ -9,7 +9,7 @@
#import "RootKey.h" #import "RootKey.h"
#import "TSDerivedSecrets.h" #import "TSDerivedSecrets.h"
#import "RKCK.h" #import "RKCK.h"
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
#import "ChainKey.h" #import "ChainKey.h"
static NSString* const kCoderData = @"kCoderData"; static NSString* const kCoderData = @"kCoderData";

View File

@ -9,7 +9,7 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import "Chain.h" #import "Chain.h"
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
@interface SendingChain : NSObject <Chain, NSSecureCoding> @interface SendingChain : NSObject <Chain, NSSecureCoding>

View File

@ -8,8 +8,8 @@
#import "SessionCipher.h" #import "SessionCipher.h"
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
#import <25519/Ed25519.h> #import <Curve25519Kit/Ed25519.h>
#import "NSData+keyVersionByte.h" #import "NSData+keyVersionByte.h"
@ -287,4 +287,4 @@
return record.sessionState.version; return record.sessionState.version;
} }
@end @end

View File

@ -19,8 +19,8 @@
#import "PreKeyWhisperMessage.h" #import "PreKeyWhisperMessage.h"
#import "RatchetingSession.h" #import "RatchetingSession.h"
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
#import <25519/Ed25519.h> #import <Curve25519Kit/Ed25519.h>
#import "PrekeyBundle.h" #import "PrekeyBundle.h"

View File

@ -6,7 +6,7 @@
// Copyright (c) 2014 Open Whisper Systems. All rights reserved. // Copyright (c) 2014 Open Whisper Systems. All rights reserved.
// //
#import <25519/Curve25519.h> #import <Curve25519Kit/Curve25519.h>
#import "SessionState.h" #import "SessionState.h"
#import "ReceivingChain.h" #import "ReceivingChain.h"
#import "SendingChain.h" #import "SendingChain.h"

View File

@ -7,7 +7,6 @@
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <CommonCrypto/CommonCrypto.h>
#define MAC_LENGTH 8 #define MAC_LENGTH 8

View File

@ -7,7 +7,7 @@
// //
#import "SerializationUtilities.h" #import "SerializationUtilities.h"
#import <CommonCrypto/CommonCrypto.h>
@implementation SerializationUtilities @implementation SerializationUtilities