Skip to content

Commit 3f8f064

Browse files
drakkangopherbot
authored andcommitted
ssh: prefer sha256 based RSA key algorithms
sha256 is more optimized than sha512 in Go and is secure enough so prefer sha256 over sha512. Change-Id: I3fcf7457791e3ef4539e97049aa905dcd293499d Reviewed-on: https://go-review.googlesource.com/c/crypto/+/507556 Reviewed-by: Filippo Valsorda <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Run-TryBot: Filippo Valsorda <[email protected]> Auto-Submit: Filippo Valsorda <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]>
1 parent 5df3b59 commit 3f8f064

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ssh/common.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ var preferredKexAlgos = []string{
7070
// supportedHostKeyAlgos specifies the supported host-key algorithms (i.e. methods
7171
// of authenticating servers) in preference order.
7272
var supportedHostKeyAlgos = []string{
73-
CertAlgoRSASHA512v01, CertAlgoRSASHA256v01,
73+
CertAlgoRSASHA256v01, CertAlgoRSASHA512v01,
7474
CertAlgoRSAv01, CertAlgoDSAv01, CertAlgoECDSA256v01,
7575
CertAlgoECDSA384v01, CertAlgoECDSA521v01, CertAlgoED25519v01,
7676

7777
KeyAlgoECDSA256, KeyAlgoECDSA384, KeyAlgoECDSA521,
78-
KeyAlgoRSASHA512, KeyAlgoRSASHA256,
78+
KeyAlgoRSASHA256, KeyAlgoRSASHA512,
7979
KeyAlgoRSA, KeyAlgoDSA,
8080

8181
KeyAlgoED25519,

0 commit comments

Comments
 (0)