buildAlgorithmsString creates a summary of the SSH algorithms from KexInit
(init KexInitMsg)
| 569 | |
| 570 | // buildAlgorithmsString creates a summary of the SSH algorithms from KexInit |
| 571 | func buildAlgorithmsString(init KexInitMsg) string { |
| 572 | var b strings.Builder |
| 573 | |
| 574 | b.WriteString("kex:") |
| 575 | b.WriteString(strings.Join(init.KexAlgos, ",")) |
| 576 | b.WriteString(";ciphers:") |
| 577 | b.WriteString(strings.Join(init.CiphersClientServer, ",")) |
| 578 | b.WriteString(";macs:") |
| 579 | b.WriteString(strings.Join(init.MACsClientServer, ",")) |
| 580 | b.WriteString(";compression:") |
| 581 | b.WriteString(strings.Join(init.CompressionClientServer, ",")) |
| 582 | |
| 583 | return b.String() |
| 584 | } |
| 585 | |
| 586 | // weakKexAlgorithms contains key exchange algorithms considered weak |
| 587 | var weakKexAlgorithms = map[string]bool{ |