MCPcopy Create free account
hub / github.com/XTLS/REALITY / noEKMBecauseRenegotiation

Function noEKMBecauseRenegotiation

prf.go:258–260  ·  view source on GitHub ↗

noEKMBecauseRenegotiation is used as a value of ConnectionState.ekm when renegotiation is enabled and thus we wish to fail all key-material export requests.

(label string, context []byte, length int)

Source from the content-addressed store, hash-verified

256// ConnectionState.ekm when renegotiation is enabled and thus
257// we wish to fail all key-material export requests.
258func noEKMBecauseRenegotiation(label string, context []byte, length int) ([]byte, error) {
259 return nil, errors.New("crypto/tls: ExportKeyingMaterial is unavailable when renegotiation is enabled")
260}
261
262// noEKMBecauseNoEMS is used as a value of ConnectionState.ekm when Extended
263// Master Secret is not negotiated and thus we wish to fail all key-material

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…