diff --git a/sshlib/src/main/kotlin/org/connectbot/sshlib/crypto/Algorithms.kt b/sshlib/src/main/kotlin/org/connectbot/sshlib/crypto/Algorithms.kt index b76bbbd92..57a64b797 100644 --- a/sshlib/src/main/kotlin/org/connectbot/sshlib/crypto/Algorithms.kt +++ b/sshlib/src/main/kotlin/org/connectbot/sshlib/crypto/Algorithms.kt @@ -242,6 +242,13 @@ internal enum class KexEntry( false, { Curve25519KeyExchange() }, ), + CURVE25519_SHA256_LIBSSH( + "curve25519-sha256@libssh.org", + HASH_SHA256, + KexType.ECDH, + false, + { Curve25519KeyExchange() }, + ), ECDH_SHA2_NISTP256( "ecdh-sha2-nistp256", HASH_SHA256, diff --git a/sshlib/src/test/kotlin/org/connectbot/sshlib/client/AsyncSshCompatibilityTest.kt b/sshlib/src/test/kotlin/org/connectbot/sshlib/client/AsyncSshCompatibilityTest.kt index d2e7279fa..f11ac94df 100644 --- a/sshlib/src/test/kotlin/org/connectbot/sshlib/client/AsyncSshCompatibilityTest.kt +++ b/sshlib/src/test/kotlin/org/connectbot/sshlib/client/AsyncSshCompatibilityTest.kt @@ -1,6 +1,6 @@ /* * ConnectBot SSH Library - * Copyright 2025 Kenny Root + * Copyright 2025-2026 Kenny Root * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -80,6 +80,7 @@ class AsyncSshCompatibilityTest { @JvmStatic fun kexAlgorithms() = listOf( "curve25519-sha256", + "curve25519-sha256@libssh.org", "ecdh-sha2-nistp256", "ecdh-sha2-nistp384", "ecdh-sha2-nistp521",