Coder Social home page Coder Social logo

ivrodriguezca / nuntius Goto Github PK

View Code? Open in Web Editor NEW
18.0 5.0 5.0 1.69 MB

iOS Framework for end-to-end encrypted messages

License: MIT License

Objective-C 51.85% C++ 0.92% C 46.65% Ruby 0.57%
cryptography objcective-c ios library diffie-hellman libsodium ecdh

nuntius's People

Contributors

ivrodriguezca avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

nuntius's Issues

Call sodium_init()

Don't forget to call sodium_init() before doing anything else with libsodium :)

Incorrect triple-DH implementation

crypto_kdf_derive_from_key(subkey, keyLength, salt, infoLabel, secret.bytes);

crypto_kdf_derive_from_key takes const unsigned char key[crypto_kdf_KEYBYTES] as a last argument, where crypto_kdf_KEYBYTES = 32. So this call only uses first 32 bytes from secret (which is 96 or 128 bytes long, when called from - [IRTripleDHService sharedKeyFromReceiverIdentityKey:receiverSignedPreKey:receiverEphemeralKey:]), turning this code into a single DH implementation

This is not standart curve25519 algoritm.

i use curve25519 algorithm both of Java and .Net library and i get same shared key from java and .net with sharing public key.
But the code in this repository does not generate same shared key with my public key that i provided from .net or java library.
How can i achive that i said above with this repository?

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.