Skip to content

Commit c497904

Browse files
committed
Give the ChaCha20Cipher a toString() method
Slightly nicer debug logging.
1 parent e487c77 commit c497904

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

sshd-common/src/main/java/org/apache/sshd/common/cipher/ChaCha20Cipher.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ public int getKeySize() {
133133
return 512;
134134
}
135135

136+
@Override
137+
public String toString() {
138+
return "chacha20-poly1305";
139+
}
140+
136141
protected static class ChaChaEngine {
137142
private static final int BLOCK_BYTES = 64;
138143
private static final int BLOCK_INTS = BLOCK_BYTES / Integer.BYTES;

0 commit comments

Comments
 (0)