Coder Social home page Coder Social logo

Comments (9)

olabini avatar olabini commented on May 29, 2024 1

Maybe make an API in libotr-ng that specifies the different things that can go in to phi - for example alice_identity, bob_identity, prearranged_password

from libotr-ng.

juniorz avatar juniorz commented on May 29, 2024

It should be enough to do only the part that is in libotr-ng: provide a way to input phi and the shared prekey when a messages needs them.

I propose merging the phi part with #58 and leaving this as generating the shared prekey.

from libotr-ng.

juniorz avatar juniorz commented on May 29, 2024

In order to generate phi', the protocol expects to receive 3 string parameters:

  • 2 identifiers (one per participants).
  • a password (optionally).

The phi' string is created by joining the 2 identifiers (in lexicographical order). If a password is provided, it is appended to the end of this session state string.

The shared session state string is then generated by joining the 2 participants' instance tags (in numerical order), the query message, and the phi' string.

from libotr-ng.

juniorz avatar juniorz commented on May 29, 2024
  • Update the spec.

from libotr-ng.

deniscostadsc avatar deniscostadsc commented on May 29, 2024

Cases like this should also have a segfault if not implemented? If yes I going to remove this checks from these if's.

from libotr-ng.

claucece avatar claucece commented on May 29, 2024

Cases like this should also have a segfault if not implemented? If yes I going to remove this checks from these if's.

We already discussed over IRC around this the other day. Right now we are not dealing with these errors as they are part of the plugin/client work. We will deal with them once we start there. So, I'll suggest leaving it there.

from libotr-ng.

juniorz avatar juniorz commented on May 29, 2024

These are not callbacks that receive value from outside, bur rather inform the outside that something happened.

If the outside does not want to be informed, the protocol can still move on.

from libotr-ng.

claucece avatar claucece commented on May 29, 2024

Yeah, still for things that inform the outside, I'll prefer to leave them as that for the moment and deal with them in the plugin work.

I'll say that we should inform, but we will see on the plugin work..

from libotr-ng.

deniscostadsc avatar deniscostadsc commented on May 29, 2024

Ok! Thanx!

from libotr-ng.

Related Issues (20)

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.