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

Method ExportKeyingMaterial

common.go:285–287  ·  view source on GitHub ↗

ExportKeyingMaterial returns length bytes of exported key material in a new slice as defined in RFC 5705. If context is nil, it is not used as part of the seed. If the connection was set to allow renegotiation via Config.Renegotiation, this function will return an error.

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

Source from the content-addressed store, hash-verified

283// the seed. If the connection was set to allow renegotiation via
284// Config.Renegotiation, this function will return an error.
285func (cs *ConnectionState) ExportKeyingMaterial(label string, context []byte, length int) ([]byte, error) {
286 return cs.ekm(label, context, length)
287}
288
289// ClientAuthType declares the policy the server will follow for
290// TLS Client Authentication.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected