-
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.
- Loading branch information
Showing
2 changed files
with
5 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ var supportedHostKeyAlgos = []string{ | |
// This is based on RFC 4253, section 6.4, but with hmac-md5 variants removed | ||
// because they have reached the end of their useful life. | ||
var supportedMACs = []string{ | ||
"[email protected]", "hmac-sha2-256", "hmac-sha1", "hmac-sha1-96", | ||
"[email protected]", "hmac-sha2-512", "hmac-sha2-256", "hmac-sha1", "hmac-sha1-96", | ||
} | ||
|
||
var supportedCompressions = []string{compressionNone} | ||
|
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ import ( | |
"crypto/hmac" | ||
"crypto/sha1" | ||
"crypto/sha256" | ||
"crypto/sha512" | ||
"hash" | ||
) | ||
|
||
|
@@ -49,6 +50,9 @@ var macModes = map[string]*macMode{ | |
"[email protected]": {32, true, func(key []byte) hash.Hash { | ||
return hmac.New(sha256.New, key) | ||
}}, | ||
"hmac-sha2-512": {64, false, func(key []byte) hash.Hash { | ||
return hmac.New(sha512.New, key) | ||
}}, | ||
"hmac-sha2-256": {32, false, func(key []byte) hash.Hash { | ||
return hmac.New(sha256.New, key) | ||
}}, | ||
|
712b88d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn't this merged?
712b88d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use GitHub for changes. The place to discuss this change is https://golang.org/cl/98056. (I don't know the answer to your question.)