4 ms·
Probably should have used higher-level functions. Maybe next time :). I don't think I can change the protocol and break compatibility at this time lol. The cry
by yvbbrjdr 5y ago
Probably should have used higher-level functions. Maybe next time :). I don't think I can change the protocol and break compatibility at this time lol.
The crypto_kx functions seem to generate 2 symmetric keys for 2 directions. That creates complications in the code and that's why I didn't use it initially..
- opheliate 5y agoYeahhh, that's a fair point about unnecessary complexity. The docs say if only one symmetric key is necessary, you can just set one of tx/rx to null, and the other will still be the requisite 256 bits, but I appreciate why that's a bit ugly.