From 890f93a207749005bb409bd121ac0631a57ca762 Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Mon, 2 Sep 2024 23:01:09 +0200 Subject: [PATCH] ChaCha20-Poly1305 is always supported --- .../java/org/apache/sshd/common/cipher/BuiltinCiphers.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sshd-common/src/main/java/org/apache/sshd/common/cipher/BuiltinCiphers.java b/sshd-common/src/main/java/org/apache/sshd/common/cipher/BuiltinCiphers.java index 3a49a6a87..671bc53a1 100644 --- a/sshd-common/src/main/java/org/apache/sshd/common/cipher/BuiltinCiphers.java +++ b/sshd-common/src/main/java/org/apache/sshd/common/cipher/BuiltinCiphers.java @@ -193,7 +193,8 @@ public Cipher create() { * unlimited-strength files need be installed and then the JVM re-started. Therefore, the answer is not going to * change while the JVM is running */ - this.supported = Constants.NONE.equals(factoryName) || Cipher.checkSupported(this.transformation, this.keysize); + this.supported = Constants.NONE.equals(factoryName) || Constants.CC20P1305_OPENSSH.equals(factoryName) + || Cipher.checkSupported(this.transformation, this.keysize); } @Override