shadowsocks / go-shadowsocks2

Modern Shadowsocks in Go
Apache License 2.0
4.45k stars 1.39k forks source link

Add Support for SM4 Cipher #234

Closed saeziae closed 9 months ago

saeziae commented 1 year ago

Add support for SM4-128-GCM (China GB/T 32907-2016)

riobard commented 1 year ago

Thanks for the PR! But I don't see why we need this?

saeziae commented 1 year ago

For a possible hardware acceleration in the future on chinese made chips such as loongson and zhaoxin used as homelab router. Of course I am clear there is no implement of hardware acceleration (neither aes nor sm4) in golang ver of ss. But adding this feature is exciting.

riobard commented 1 year ago

I'm not sure if it's wise to run Shadowsocks on such chips…