mwiede / jsch

fork of the popular jsch library
Other
763 stars 144 forks source link

Can it support SM2 SM4? #576

Open jokerskai opened 5 months ago

jokerskai commented 5 months ago

Can it support SM2 SM4?

mwiede commented 5 months ago

At the moment it is not. After I googled I only found a note on https://www.thunes.com/news/digital-signature-usage-of-chinese-cryptography-standards/ regarding an implementation in Java at all.

mwiede commented 5 months ago

https://github.com/Tencent/TencentKonaSMSuite

norrisjeremy commented 3 months ago

Hi @jokerskai,

I am not aware of any SSH standards or implementations that support the SM2 and/or SM4 crypto algorithms, so it is unlikely we would add them to JSch since there would be no way to test interoperability.

Thanks, Jeremy

jokerskai commented 1 day ago

Hi @norrisjeremy, China is currently switching to SM encryption algorithm, and the file transfer tool that supports SM encryption algorithm has not been found. I hope JSCH can support SM encryption algorithm.OpenEuler Operating system SM3 SM4 SM2-SM3. you can test interoperability on it. Thanks.

mwiede commented 1 day ago

I think it is possible to integrate the tencent suite, but somebody has to do it, this is open source

norrisjeremy commented 1 day ago

I think it is possible to integrate the tencent suite, but somebody has to do it, this is open source

Unless someone can point to some other functioning SSH server that implements these algorithms, I'm not sure why JSch would integrate them, as there would be no point to them since they wouldn't offer any practical interoperability.

I would also encourage users for which this is important to work with the recently formed SSHM working group of the IETF to actually ratify standards for these algorithms.