GithubHelp home page GithubHelp logo

Comments (4)

jech avatar jech commented on July 25, 2024 1

I'm a little confused. The whole point of insertable streams is that the server does not know the encryption keys, so that you get end-to-end authentication. Almost all of the support should happen on the client side:

  • negotiation of end-to-end keys, for example using a Diffie-Hellman exchange using the "usermessage" mechanism;
  • encryption on the sender side and decryption on the client side.

As far as I can see, the only change necessary on the server side should be to ensure that the Keyframe function in codec.go returns (false, false) in the case of an end-to-end encrypted stream. You should also ensure that saving an end-to-end encrypted stream fails cleanly.

from galene.

jech avatar jech commented on July 25, 2024 1

Ah, I see.

Packet reception happens here: https://github.com/jech/galene/blob/master/rtpconn/rtpreader.go#L61
Packet emission happens here: https://github.com/jech/galene/blob/master/rtpconn/rtpconn.go#L224

Note that (*rtpDownTrack) Write may be called from multiple threads simultaneously, so make sure that you do proper locking if you add state.

from galene.

shalom-aviv avatar shalom-aviv commented on July 25, 2024

@jech Thanks for answer!

Clients and server will receive their keys via other channels from outside of Galene.
The idea is to add additional encryption with own proprietary algorithm between the server and clients.
The server is trusted and it can have access to the decrypted stream.

from galene.

shalom-aviv avatar shalom-aviv commented on July 25, 2024

@jech Thank you!

from galene.

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.