MCPcopy Create free account
hub / github.com/XTLS/Go / supportsCurve

Method supportsCurve

common.go:1030–1037  ·  view source on GitHub ↗
(curve CurveID)

Source from the content-addressed store, hash-verified

1028}
1029
1030func (c *Config) supportsCurve(curve CurveID) bool {
1031 for _, cc := range c.curvePreferences() {
1032 if cc == curve {
1033 return true
1034 }
1035 }
1036 return false
1037}
1038
1039// mutualVersion returns the protocol version to use given the advertised
1040// versions of the peer. Priority is given to the peer preference order.

Callers 3

SupportsCertificateMethod · 0.80
supportsECDHEFunction · 0.80

Calls 1

curvePreferencesMethod · 0.95

Tested by

no test coverage detected