prepareCipherSpec sets the encryption and MAC states that a subsequent changeCipherSpec will use.
(version uint16, cipher any, mac hash.Hash)
| 224 | // prepareCipherSpec sets the encryption and MAC states |
| 225 | // that a subsequent changeCipherSpec will use. |
| 226 | func (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. |
no outgoing calls
no test coverage detected