github.com/refraction-networking/utls.GREASEEncryptedClientHelloExtension.EncapsulatedKey (field)
13 uses
github.com/refraction-networking/utls (current package)
u_ech.go#L51: EncapsulatedKey []byte // if empty, will generate random bytes
u_ech.go#L111: if len(g.EncapsulatedKey) == 0 {
u_ech.go#L123: g.EncapsulatedKey, _, err = hpke.SetupSender(kem, suite.KDFID, suite.AEADID, echPK, []byte{})
u_ech.go#L173: return 2 + 2 + 1 /* ClientHello Type */ + 4 /* CipherSuite */ + 1 /* Config ID */ + 2 + len(g.EncapsulatedKey) + 2 + len(g.payload)
u_ech.go#L192: b[10] = byte(len(g.EncapsulatedKey) >> 8)
u_ech.go#L193: b[11] = byte(len(g.EncapsulatedKey) & 0xFF)
u_ech.go#L194: copy(b[12:], g.EncapsulatedKey)
u_ech.go#L195: b[12+len(g.EncapsulatedKey)] = byte(len(g.payload) >> 8)
u_ech.go#L196: b[12+len(g.EncapsulatedKey)+1] = byte(len(g.payload) & 0xFF)
u_ech.go#L197: copy(b[12+len(g.EncapsulatedKey)+2:], g.payload)
u_ech.go#L246: g.EncapsulatedKey = make([]byte, len(ignored))
u_ech.go#L247: n, err := rand.Read(g.EncapsulatedKey)
u_ech.go#L251: if n != len(g.EncapsulatedKey) {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |