This is an automated email from the ASF dual-hosted git repository. twolf pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
commit c49790453544297fd8690450be7fd4739002897f Author: Thomas Wolf <tw...@apache.org> AuthorDate: Fri Feb 21 22:08:31 2025 +0100 Give the ChaCha20Cipher a toString() method Slightly nicer debug logging. --- .../src/main/java/org/apache/sshd/common/cipher/ChaCha20Cipher.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sshd-common/src/main/java/org/apache/sshd/common/cipher/ChaCha20Cipher.java b/sshd-common/src/main/java/org/apache/sshd/common/cipher/ChaCha20Cipher.java index 61286a848..e82b4bd40 100644 --- a/sshd-common/src/main/java/org/apache/sshd/common/cipher/ChaCha20Cipher.java +++ b/sshd-common/src/main/java/org/apache/sshd/common/cipher/ChaCha20Cipher.java @@ -133,6 +133,11 @@ public class ChaCha20Cipher implements Cipher { return 512; } + @Override + public String toString() { + return "chacha20-poly1305"; + } + protected static class ChaChaEngine { private static final int BLOCK_BYTES = 64; private static final int BLOCK_INTS = BLOCK_BYTES / Integer.BYTES;