Git Product home page Git Product logo

25519's People

Contributors

fredericjacobs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

25519's Issues

License mismatch

Super minor: the license mentioned in the readme does not match with the license in LICENSE. GPLv3 and GPLv2 respectively.

Add bounds checks

Known issues when data is too small (17 bytes) or too large (8mb)

Signal

This library is used in Signal. I get the following error when I try to integrate their signal libraries from 25519. Is there any build setting that will solve this issue.
.../Pods/AxolotlKit/AxolotlKit/Classes/Ratchet/AxolotlParameters.h:10:9: '25519/Curve25519.h' file not found

altering podfile after installing 25519 pod results in unresolveable error

steps to reproduce:

1 . open test project (e.g. ios single view app)
2 . add a podfile like this

platform :ios
pod '25519'

3 . open *.xcworkspace and build ... everything is fine
4 . alter podfile to look like this

platform :ios
pod '25519'
pod 'AFNetworking'

5 . pod install leads to (this error + unusable *.xcworkspace)

Stack

   CocoaPods : 0.35.0
        Ruby : ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
    RubyGems : 2.0.14
        Host : Mac OS X 10.10.2 (14C109)
       Xcode : 6.1.1 (6A2008a)
         Git : git version 1.9.3 (Apple Git-50)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 403f6ccb21a75839b1790d03e65fca5b2d0e526b

Plugins

cocoapods-plugins : 0.4.1
cocoapods-trunk   : 0.4.0
cocoapods-try     : 0.4.3

Podfile

platform :ios

pod '25519'
pod 'AFNetworking'

Error

NoMethodError - undefined method `match' for 25519:Fixnum
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/dependency.rb:327:in `from_string'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/lockfile.rb:117:in `block in dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/lockfile.rb:116:in `map'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/lockfile.rb:116:in `dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/lockfile.rb:260:in `detect_changes_with_podfile'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer.rb:154:in `block in generate_podfile_state'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface.rb:49:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer.rb:153:in `generate_podfile_state'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer.rb:53:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer.rb:184:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer.rb:106:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface.rb:49:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer.rb:105:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer.rb:90:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command/project.rb:101:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:271:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:45:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/bin/pod:43:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'

Installing via Podfile results in linker error (pod version 1.5)

When used in a static library I found that installing 25519 (v1.5) would result in linker errors when attempting to compile & run tests. The issue was resolved by including pod "curve25519-donna" in the Podfile.

ld: warning: directory not found for option '-L/Users/jackwink/dev/AFSecure/AFSecure/Pods/build/Debug-iphoneos'
Undefined symbols for architecture i386:
  "_curve25519_donna", referenced from:
      +[ECKeyPair generateKeyPair] in libAFSecure.a(Curve25519.o)
      -[ECKeyPair generateSharedSecretFromPublicKey:] in libAFSecure.a(Curve25519.o)
ld: symbol(s) not found for architecture i386

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.