Update podspec

This commit is contained in:
nielsandriesse 2020-06-04 14:38:50 +10:00
parent 9e5663baf4
commit 2c02fae0dd
5 changed files with 18 additions and 18 deletions

View File

@ -4,7 +4,7 @@
#import "Curve25519.h"
#import "Ed25519.h"
#import <SignalCoreKit/Randomness.h>
#import <SessionCoreKit/Randomness.h>
#import <XCTest/XCTest.h>
@interface SigningTests : XCTestCase
@ -16,7 +16,7 @@
- (void)setUp
{
[super setUp];
}
- (void)tearDown
@ -27,9 +27,9 @@
- (void)testingRandom{
for (int i = 1; i < 1000; i++) {
for (int j = 0; j < 3; j++) {
ECKeyPair *key = [Curve25519 generateKeyPair];
NSData *data = [Randomness generateRandomBytes:i];
NSData *signature = [Ed25519 throws_sign:data withKeyPair:key];
@ -44,9 +44,9 @@
- (void)testingIdentityKeyStyle{
for (int i = 0; i < 10000; i++) {
ECKeyPair *key = [Curve25519 generateKeyPair];
NSData *data = [Randomness generateRandomBytes:32];
NSData *signature = [Ed25519 throws_sign:data withKeyPair:key];

View File

@ -3,9 +3,9 @@
//
#import "Curve25519.h"
#import <SignalCoreKit/OWSAsserts.h>
#import <SignalCoreKit/Randomness.h>
#import <SignalCoreKit/SCKExceptionWrapper.h>
#import <SessionCoreKit/OWSAsserts.h>
#import <SessionCoreKit/Randomness.h>
#import <SessionCoreKit/SCKExceptionWrapper.h>
NS_ASSUME_NONNULL_BEGIN

View File

@ -4,8 +4,8 @@
#import "Ed25519.h"
#import "Curve25519.h"
#import <SignalCoreKit/OWSAsserts.h>
#import <SignalCoreKit/SCKExceptionWrapper.h>
#import <SessionCoreKit/OWSAsserts.h>
#import <SessionCoreKit/SCKExceptionWrapper.h>
extern int curve25519_verify(const unsigned char *signature, /* 64 bytes */
const unsigned char *curve25519_pubkey, /* 32 bytes */

View File

@ -1,27 +1,27 @@
Pod::Spec.new do |spec|
spec.name = 'Curve25519Kit'
spec.version = '2.1.0'
spec.name = 'SessionCurve25519Kit'
spec.version = '2.1.1'
spec.license = { :type => 'GPLv3' }
spec.homepage = 'https://github.com/WhisperSystems/Curve25519Kit'
spec.homepage = 'https://github.com/loki-project/session-ios-curve-25519-kit'
spec.preserve_path = 'Sources/ed25519/**/*.{c,h}'
spec.authors = { 'Frederic Jacobs' => 'github@fredericjacobs.com' }
spec.authors = { 'Niels Andriesse' => 'niels@loki.network' }
spec.summary = 'Key agreement (curve25519) and signing (ed25519), all with curve25519 keys.'
spec.description = <<-DESC
Curve25519 is a fast and secure curve used for key agreement. Unfortunately, it does not support signing out of the box. This pod translates the point curves to do ed25519 signing with curve25519 keys.
DESC
spec.source = { :git => 'https://github.com/signalapp/Curve25519Kit.git', :tag => "#{spec.version}" }
spec.source = { :git => 'https://github.com/loki-project/session-ios-curve-25519-kit.git', :tag => "#{spec.version}" }
spec.source_files = 'Classes/*.{h,m,swift}', 'Sources/Curve25519/curve25519-donna.c', 'Sources/ed25519/*.{c,h}', 'Sources/ed25519/additions/*.{c,h}', 'Sources/ed25519/nacl_sha512/*.{c,h}', 'Sources/ed25519/nacl_includes/*.{c,h}', 'Private/*.{h,m}'
spec.public_header_files = 'Classes/**/*.h'
#spec.private_header_files = 'Sources/ed25519/nacl_includes/*.h','Sources/ed25519/additions/*.h', 'Sources/ed25519/nacl_sha512/*.h'
spec.framework = 'Security'
spec.public_header_files = "Classes/*.h"
spec.requires_arc = true
spec.ios.deployment_target = "9.0"
spec.ios.deployment_target = "10.0"
spec.dependency 'CocoaLumberjack'
spec.dependency 'SignalCoreKit'
spec.dependency 'SessionCoreKit', '~> 1.0.0'
spec.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'BuildTests/BuildTestsTests/**/*.{h,m,swift}'