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

Interface ecdheParameters

key_schedule.go:106–110  ·  view source on GitHub ↗

ecdheParameters implements Diffie-Hellman with either NIST curves or X25519, according to RFC 8446, Section 4.2.8.2.

Source from the content-addressed store, hash-verified

104// ecdheParameters implements Diffie-Hellman with either NIST curves or X25519,
105// according to RFC 8446, Section 4.2.8.2.
106type ecdheParameters interface {
107 CurveID() CurveID
108 PublicKey() []byte
109 SharedKey(peerPublicKey []byte) []byte
110}
111
112func generateECDHEParameters(rand io.Reader, curveID CurveID) (ecdheParameters, error) {
113 if curveID == X25519 {

Callers 11

processServerHelloMethod · 0.65
makeClientHelloMethod · 0.95
processClientHelloMethod · 0.65
processClientHelloMethod · 0.65

Implementers 2

nistParameterskey_schedule.go
x25519Parameterskey_schedule.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…