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

Function marshalEncryptedClientHelloConfigList

ech.go:572–580  ·  view source on GitHub ↗
(configs []EncryptedClientHelloKey)

Source from the content-addressed store, hash-verified

570}
571
572func marshalEncryptedClientHelloConfigList(configs []EncryptedClientHelloKey) ([]byte, error) {
573 builder := cryptobyte.NewBuilder(nil)
574 builder.AddUint16LengthPrefixed(func(builder *cryptobyte.Builder) {
575 for _, c := range configs {
576 builder.AddBytes(c.Config)
577 }
578 })
579 return builder.Bytes()
580}
581
582func (c *Conn) processECHClientHello(outer *clientHelloMsg, echKeys []EncryptedClientHelloKey) (*clientHelloMsg, *echServerContext, error) {
583 echType, echCiphersuite, configID, encap, payload, err := parseECHExt(outer.encryptedClientHello)

Callers

nothing calls this directly

Calls 1

BytesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…