Explore support for XChaCha20-Poly1305
closed
Tom Raganowicz
Benefits:
- n times faster than AES-GCM on devices where hardware acceleration is not easily accessible,
- streaming support (via libsodium), which would allow downloading/uploading huge files without memory constraints, would also allow encrypted video preview (and potentially even seek/rewind),
- support for ~infinite file sizes comparing to ~64GB with AES-GCM,
Tom Raganowicz
closed
Tom Raganowicz
After internal research we've concluded that XChaCha20-Poly1035 is great AES-GCM replacement, however before there is a native browser support or fast JS/WASM implementation it is not practical/feasible to run it in the browser context.
We close it in favor of additional improvements on top of AES-GCM protocol using STREAM protocol: https://s3drive.canny.io/feature-requests/p/implement-chunked-encryption-using-stream-protocol
Tom Raganowicz
in progress
Tom Raganowicz
under review
Tom Raganowicz
Given that libsodium doesn't support streaming this will have to be postponed untill we find a different library.
Tom Raganowicz
in progress
Tom Raganowicz
under review