GithubHelp home page GithubHelp logo

isabella232 / session-ios-curve-25519-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oxen-io/session-ios-curve-25519-kit

0.0 0.0 0.0 237 KB

Key agreement (X25519) and signing (ed25519), X25519 keys.

Home Page: http://cocoadocs.org/docsets/25519

License: GNU General Public License v2.0

Ruby 0.47% Objective-C 28.13% C 67.60% C++ 3.56% Swift 0.23%

session-ios-curve-25519-kit's Introduction

25519 Build Status

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.

Usage

Generating a curve25519 key:

ECKeyPair *curve25519Key = [Curve25519 generateKeyPair];

ECKeyPair conforms to NSCoding to make storage of it more convenient.


Generating a curve25519 shared secret:

NSData *sharedSecret = [Curve25519 generateSharedSecretFromPublicKey:aPublicKey andKeyPair:anECKeyPair];

ed25519-sign message with curve25519 key pair:

NSData *signature = [Ed25519 sign:message withKeyPair:ecKeyPair]

ed25519-verify message with curve25519 key pair:

BOOL validSignature = [Ed25519 verifySignature:signature publicKey:ecPublicKey msg:message;

Documentation

API reference is available on CocoaDocs.

Installation

Add this line to your Podfile

pod '25519', '~> version number'

Cryptographic Implementations

The Curve25519 key pair and ECDH is done with Adam Langleyโ€™s curve25519-donna. The point conversion algorithm was written by the inimitable Trevor Perrin.

License

Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html

session-ios-curve-25519-kit's People

Contributors

charlesmchen-signal avatar fredericjacobs avatar michaelkirk avatar nielsandriesse avatar

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.