-
Notifications
You must be signed in to change notification settings - Fork 114
Remove or improve I/O ByteStream? #811
Comments
Cryptopp's pipeline looks really solid. Replacing stream instances with pipelines might also help with #784, no? |
Yes, I'm well aware of crypto++'s sources and sinks as I've implemented them elsewhere. The standard library also has streaming but, in both instances, the issue is overhead - especially when you start treating binary data as strings. That is something I want to avoid because our frequent use-case. Also, the point of this issue was to illustrate that we don't need streaming most of the time anyway if kovri is re-designed properly.
No. SecBlock is for arrays of memory and SecureWipe is a free function. They don't require cryptopp sources or sinks. |
I misunderstood. Is there a tracking issue for the overall redesign?
I saw in the docs that SecBlock underlies some of crypto++'s sources and sinks, which made me think pipelining might be a good idea. Now that you pointed out the overhead issues, it makes sense why pipelining isn't needed. Would using SecBlock and SecureWipe be part of the solution here, or is this issue independent from those use-cases? |
No, not yet, because many of the TODOs and open issues point out the various design flaws and can be addressed on a per-component basis. A single catch-all issue would basically rewrite the entire codebase from scratch. I've implied this intention countless times over IRC since we forked but not opened a catch-all issue. I have yet to even open all per-component issues nor mark them all with TODOs because the issues are too obvious.
Nope, unrelated. |
NOTICE: THIS ISSUE HAS BEEN MOVED TO GitLab. Please continue the discussion there. See #1013 for details. |
By submitting this issue, I confirm the following:
From #810
The text was updated successfully, but these errors were encountered: