shadowsocks-chromeapp icon indicating copy to clipboard operation
shadowsocks-chromeapp copied to clipboard

Add ChaCha20 Support

Open librehat opened this issue 9 years ago • 8 comments

chacha20.js can be helpful.

I may contribute to this project once my laptop arrives

librehat avatar Dec 05 '15 17:12 librehat

Thanks~ I'll take a look later and PR is welcomed~

nekolab avatar Dec 05 '15 22:12 nekolab

Hey,how's it going? Sounds like you really made a great move!

Jason110go avatar Mar 03 '16 12:03 Jason110go

Sorry, currently I have no time to work on this : ( Since I'm planning to use native client engine replace js engine, so this issue may have lower priority As always, if you want to give some help, pull request is welcome

nekolab avatar Mar 03 '16 13:03 nekolab

I tried to use chacha20.js but couldn't make it work. ;( You might wish to check my WIP commit: https://github.com/librehat/shadowsocks-chromeapp/commit/e53c3015edf933e574d4766cd6c8acd1cfef3924

librehat avatar Mar 10 '16 22:03 librehat

@librehat Maybe we need to set a padding to create a block and set a counter like the implementation in C version?

nekolab avatar Mar 11 '16 09:03 nekolab

@meowlab I don't think we need to set the counter ourselves (if I understand it correctly from libsodium). As for padding, do we need to create a block? Chacha20 is a stream cipher.

librehat avatar Mar 12 '16 21:03 librehat

Will https://github.com/jedisct1/libsodium.js help?

wongsyrone avatar Jul 05 '16 07:07 wongsyrone

@wongsyrone I don't think so, it seems doesn't contains chacha20 and salsa20 cipher support.

nekolab avatar Jul 22 '16 07:07 nekolab