News for hackers. Stuff that matters.
Re:Streaming encryption protocol based on libsodium's box pr... by jedisct1 on Sunday June 07, 2015 @06:48AM (#9674119)
This is a bit weird. Why not use an AEAD construction? Libsodium provides ChaCha20Poly1305, conform to RFC 7539.

The code is also confusing. "box" is actually the "secretbox_easy" operation, but rewritten using "secretbox". Which intentionally doesn't exist in libsodium.js because it only makes sense in C code.

Re:Streaming encryption protocol based on libsodium's box pr... by domanic on Sunday June 07, 2015 @08:49AM (#9674435)
Hi I am the author of this protocol (though I do not know who posted it to hacker news)

You ask a good question, but I would much rather discuss it on github, since then that discussion will be tied to the project not a hacker news thread.

https://github.com/dominictarr/pull-box-stream/issues/5