Lines Matching defs:halfConn
168 type halfConn struct { struct
169 sync.Mutex
171 err error // first permanent error
172 version uint16 // protocol version
173 wireVersion uint16 // wire version
174 isDTLS bool
175 cipher interface{} // cipher algorithm
176 mac macFunction
177 seq [8]byte // 64-bit sequence number
178 outSeq [8]byte // Mapped sequence number
179 bfree *block // list of free blocks
181 nextCipher interface{} // next encryption state
182 nextMac macFunction // next MAC algorithm
183 nextSeq [6]byte // next epoch's starting sequence number in DTLS
186 inDigestBuf, outDigestBuf []byte
188 trafficSecret []byte
190 config *Config
193 func (hc *halfConn) setErrorLocked(err error) error {
198 func (hc *halfConn) error() error {
208 func (hc *halfConn) prepareCipherSpec(version uint16, cipher interface{}, mac macFunction) {
221 func (hc *halfConn) changeCipherSpec(config *Config) error {
240 …fConn) useTrafficSecret(version uint16, suite *cipherSuite, secret []byte, side trafficDirection) {
258 func (hc *halfConn) resetCipher() {
264 func (hc *halfConn) incSeq(isOutgoing bool) {
288 func (hc *halfConn) incNextSeq() {
300 func (hc *halfConn) incEpoch() {
324 func (hc *halfConn) updateOutSeq() {
338 func (hc *halfConn) recordHeaderLen() int {
413 …c *halfConn) decrypt(b *block) (ok bool, prefixLen int, contentType recordType, alertValue alert) {
572 func (hc *halfConn) encrypt(b *block, explicitIVLen int, typ recordType) (bool, alert) {
722 func (hc *halfConn) newBlock() *block {
737 func (hc *halfConn) freeBlock(b *block) {
745 func (hc *halfConn) splitBlock(b *block, n int) (*block, *block) {