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

Enable chacha20-poly1305@openssh.com cipher #317

Open
q3cpma opened this issue Aug 27, 2023 · 3 comments
Open

Enable chacha20-poly1305@openssh.com cipher #317

q3cpma opened this issue Aug 27, 2023 · 3 comments

Comments

@q3cpma
Copy link

q3cpma commented Aug 27, 2023

Hello, since modern OpenSSH removed arcfour and blowfish, this might be the fastest pure CPU (without AES-NI) cipher we have. But it doesn't seem to be available:

sftp -c chacha20-poly1305@openssh.com -P 1234 user@192.168.1.20:
Unable to negotiate with 192.168.1.20 port 1234: no matching cipher found. Their offer: aes128-ctr,aes192-ctr,aes256-ctr,arcfour128,arcfour256,aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
Connection closed.
Connection closed

A quick read of mina-sshd (https://github.com/apache/mina-sshd/blob/master/sshd-common/src/main/java/org/apache/sshd/common/cipher/BuiltinCiphers.java#L380) shows it should be available, so why not?

@wolpi
Copy link
Owner

wolpi commented Sep 3, 2023

In this app we have mina sshd 0.x. Your link points to version 2.x.
Why do we have this old version?
In this old code base, and support for old Android versions, we still have Java 6. Mina 2.x demands newer Java.
After a short look it seems that Mina 2.x has completley different API. That means a lot of work to integrate it in this app.

Nevertheless it might be possible to enable chacha20, needs to be checked.

@q3cpma
Copy link
Author

q3cpma commented Sep 3, 2023 via email

@wolpi wolpi mentioned this issue Nov 26, 2023
@wolpi
Copy link
Owner

wolpi commented Jan 5, 2024

There is a new attack on chacha20-poly1305:
https://terrapin-attack.com/

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

No branches or pull requests

2 participants