MCPcopy Index your code
hub / github.com/dreadl0ck/netcap / hasWeakCipher

Function hasWeakCipher

decoder/stream/ssh/ssh_reader.go:625–632  ·  view source on GitHub ↗

hasWeakCipher checks if any offered cipher is weak

(ciphers []string)

Source from the content-addressed store, hash-verified

623
624// hasWeakCipher checks if any offered cipher is weak
625func hasWeakCipher(ciphers []string) bool {
626 for _, cipher := range ciphers {
627 if weakCiphers[cipher] {
628 return true
629 }
630 }
631 return false
632}
633
634// hasWeakMAC checks if any offered MAC algorithm is weak
635func hasWeakMAC(macs []string) bool {

Callers 1

searchKexInitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected