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