-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ssh: add support for [email protected]
- Loading branch information
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ const ( | |
// supportedCiphers lists ciphers we support but might not recommend. | ||
var supportedCiphers = []string{ | ||
"aes128-ctr", "aes192-ctr", "aes256-ctr", | ||
"[email protected]", | ||
"[email protected]", gcm256CipherID, | ||
chacha20Poly1305ID, | ||
"arcfour256", "arcfour128", "arcfour", | ||
aes128cbcID, | ||
|
@@ -37,7 +37,7 @@ var supportedCiphers = []string{ | |
|
||
// preferredCiphers specifies the default preference for ciphers. | ||
var preferredCiphers = []string{ | ||
"[email protected]", | ||
"[email protected]", gcm256CipherID, | ||
chacha20Poly1305ID, | ||
"aes128-ctr", "aes192-ctr", "aes256-ctr", | ||
} | ||
|
@@ -168,7 +168,7 @@ func (a *directionAlgorithms) rekeyBytes() int64 { | |
// 2^(BLOCKSIZE/4) blocks. For all AES flavors BLOCKSIZE is | ||
// 128. | ||
switch a.Cipher { | ||
case "aes128-ctr", "aes192-ctr", "aes256-ctr", gcmCipherID, aes128cbcID: | ||
case "aes128-ctr", "aes192-ctr", "aes256-ctr", gcmCipherID, gcm256CipherID, aes128cbcID: | ||
return 16 * (1 << 32) | ||
|
||
} | ||
|
@@ -179,6 +179,7 @@ func (a *directionAlgorithms) rekeyBytes() int64 { | |
|
||
var aeadCiphers = map[string]bool{ | ||
gcmCipherID: true, | ||
gcm256CipherID: true, | ||
chacha20Poly1305ID: true, | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ const debugTransport = false | |
|
||
const ( | ||
gcmCipherID = "[email protected]" | ||
gcm256CipherID = "[email protected]" | ||
aes128cbcID = "aes128-cbc" | ||
tripledescbcID = "3des-cbc" | ||
) | ||
|