hasWeakKex checks if any offered key exchange algorithm is weak
(kexAlgos []string)
| 613 | |
| 614 | // hasWeakKex checks if any offered key exchange algorithm is weak |
| 615 | func hasWeakKex(kexAlgos []string) bool { |
| 616 | for _, kex := range kexAlgos { |
| 617 | if weakKexAlgorithms[kex] { |
| 618 | return true |
| 619 | } |
| 620 | } |
| 621 | return false |
| 622 | } |
| 623 | |
| 624 | // hasWeakCipher checks if any offered cipher is weak |
| 625 | func hasWeakCipher(ciphers []string) bool { |