Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can it support SM2 SM4? #576

Open
jokerskai opened this issue Jun 13, 2024 · 6 comments
Open

Can it support SM2 SM4? #576

jokerskai opened this issue Jun 13, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@jokerskai
Copy link

Can it support SM2 SM4?

@mwiede
Copy link
Owner

mwiede commented Jun 13, 2024

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 mwiede added the enhancement New feature or request label Jun 13, 2024
@mwiede
Copy link
Owner

mwiede commented Jun 13, 2024

@norrisjeremy
Copy link
Contributor

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
Copy link
Author

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
Copy link
Owner

mwiede commented Nov 26, 2024

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

@norrisjeremy
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants