Git Product home page Git Product logo

Comments (3)

tomekit avatar tomekit commented on September 17, 2024 1

I do appreciate your quick response on that. Even though the use case as described is valid and worth having in mind in the future, we've actually concluded that secretstream isn't for us, so if by any chance I've created some feeling of urgency it's definitely no longer important to me at least.

In the meantime I've received brilliant summary response regarding the streaming ciphers: https://crypto.stackexchange.com/a/106992/70896 which made us pursue other streaming protocol, because of lack of seeking in secretsteam:

it doesn't support random-access decryption because of the nonce XOR

from libsodium_dart_bindings.

Skycoder42 avatar Skycoder42 commented on September 17, 2024

This is indeed a use case I have not thought of, but definitely something useful to look in to. The dart stream API makes it somewhat hard to do that. Initializing from a previously saved state is easy, but getting that state is hard.

The main problem is that dart streams, as well as all IO (including HTTP) is asynchronous and thus we cannot wait for individual chunks to be sent before "advancing" the state. I will however think about this a little more and see how it might be integrated into the existing APIs.

Also, while not ideal, you could directly use the C-Bindings, they are exported from the library and allow you direct access to the C API. However, then you have to take care of pointer-management etc. yourself as well, so I'd only recommend that as a last resort.

from libsodium_dart_bindings.

Skycoder42 avatar Skycoder42 commented on September 17, 2024

Okay. I think I will still leave this issue open, as it might be relevant for others as well.

from libsodium_dart_bindings.

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.