Latest 2.1.0
Homepage https://github.com/WhisperSystems/Curve25519Kit
License GPLv3
Platforms osx , ios , tvos , watchos , requires ARC
Frameworks Security
Authors

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

Latest podspec

{
    "name": "Curve25519Kit",
    "version": "2.1.0",
    "license": {
        "type": "GPLv3"
    },
    "homepage": "https://github.com/WhisperSystems/Curve25519Kit",
    "preserve_paths": "Sources/ed25519/**/*.{c,h}",
    "authors": {
        "Frederic Jacobs": "[email protected]"
    },
    "summary": "Key agreement (curve25519) and signing (ed25519), all with curve25519 keys.",
    "description": "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.",
    "source": {
        "git": "https://github.com/WhisperSystems/Curve25519Kit.git",
        "tag": "2.1.0"
    },
    "source_files": [
        "Classes/*.{h,m}",
        "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}"
    ],
    "frameworks": "Security",
    "public_header_files": "Classes/*.h",
    "requires_arc": true,
    "platforms": {
        "osx": null,
        "ios": null,
        "tvos": null,
        "watchos": null
    }
}

Pin It on Pinterest

Share This