forked from golang/crypto
-
Notifications
You must be signed in to change notification settings - Fork 2
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]
Change-Id: I91caf3bda3dfd00c050f5ebf23c2a35a04c5762b GitHub-Last-Rev: 6e71340 GitHub-Pull-Request: golang#127 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/223518 Auto-Submit: Filippo Valsorda <[email protected]> Run-TryBot: Filippo Valsorda <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]> Reviewed-by: Filippo Valsorda <[email protected]> Reviewed-by: Han-Wen Nienhuys <[email protected]>
- Loading branch information
Showing
5 changed files
with
11 additions
and
8 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
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", gcm128CipherID, gcm256CipherID, aes128cbcID: | ||
return 16 * (1 << 32) | ||
|
||
} | ||
|
@@ -178,7 +178,8 @@ func (a *directionAlgorithms) rekeyBytes() int64 { | |
} | ||
|
||
var aeadCiphers = map[string]bool{ | ||
gcmCipherID: true, | ||
gcm128CipherID: 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
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 |
---|---|---|
|
@@ -17,7 +17,8 @@ import ( | |
const debugTransport = false | ||
|
||
const ( | ||
gcmCipherID = "[email protected]" | ||
gcm128CipherID = "[email protected]" | ||
gcm256CipherID = "[email protected]" | ||
aes128cbcID = "aes128-cbc" | ||
tripledescbcID = "3des-cbc" | ||
) | ||
|