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

Method prepareCipherSpec

conn.go:226–230  ·  view source on GitHub ↗

prepareCipherSpec sets the encryption and MAC states that a subsequent changeCipherSpec will use.

(version uint16, cipher any, mac hash.Hash)

Source from the content-addressed store, hash-verified

224// prepareCipherSpec sets the encryption and MAC states
225// that a subsequent changeCipherSpec will use.
226func (hc *halfConn) prepareCipherSpec(version uint16, cipher any, mac hash.Hash) {
227 hc.version = version
228 hc.nextCipher = cipher
229 hc.nextMac = mac
230}
231
232// changeCipherSpec changes the encryption and MAC states
233// to the ones previously passed to prepareCipherSpec.

Callers 2

establishKeysMethod · 0.80
establishKeysMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected