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

Method prepareCipherSpec

conn.go:214–218  ·  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

212// prepareCipherSpec sets the encryption and MAC states
213// that a subsequent changeCipherSpec will use.
214func (hc *halfConn) prepareCipherSpec(version uint16, cipher any, mac hash.Hash) {
215 hc.version = version
216 hc.nextCipher = cipher
217 hc.nextMac = mac
218}
219
220// changeCipherSpec changes the encryption and MAC states
221// 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