MCPcopy Index your code
hub / github.com/XTLS/REALITY / decryptECHPayload

Function decryptECHPayload

ech.go:423–426  ·  view source on GitHub ↗
(context *hpke.Recipient, hello, payload []byte)

Source from the content-addressed store, hash-verified

421}
422
423func decryptECHPayload(context *hpke.Recipient, hello, payload []byte) ([]byte, error) {
424 outerAAD := bytes.Replace(hello[4:], payload, make([]byte, len(payload)), 1)
425 return context.Open(outerAAD, payload)
426}
427
428func generateOuterECHExt(id uint8, kdfID, aeadID uint16, encodedKey []byte, payload []byte) ([]byte, error) {
429 var b cryptobyte.Builder

Callers 2

doHelloRetryRequestMethod · 0.85
processECHClientHelloMethod · 0.85

Calls 1

OpenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…