• Home
  • Raw
  • Download

Lines Matching defs:halfConn

150 type halfConn struct {  struct
151 sync.Mutex
153 err error // first permanent error
154 version uint16 // protocol version
155 isDTLS bool
156 cipher interface{} // cipher algorithm
157 mac macFunction
158 seq [8]byte // 64-bit sequence number
159 outSeq [8]byte // Mapped sequence number
160 bfree *block // list of free blocks
162 nextCipher interface{} // next encryption state
163 nextMac macFunction // next MAC algorithm
164 nextSeq [6]byte // next epoch's starting sequence number in DTLS
167 inDigestBuf, outDigestBuf []byte
169 trafficSecret []byte
171 config *Config
174 func (hc *halfConn) setErrorLocked(err error) error {
179 func (hc *halfConn) error() error {
189 func (hc *halfConn) prepareCipherSpec(version uint16, cipher interface{}, mac macFunction) {
197 func (hc *halfConn) changeCipherSpec(config *Config) error {
216 …fConn) useTrafficSecret(version uint16, suite *cipherSuite, secret []byte, side trafficDirection) {
229 func (hc *halfConn) resetCipher() {
234 func (hc *halfConn) doKeyUpdate(c *Conn, isOutgoing bool) {
243 func (hc *halfConn) incSeq(isOutgoing bool) {
267 func (hc *halfConn) incNextSeq() {
279 func (hc *halfConn) incEpoch() {
303 func (hc *halfConn) updateOutSeq() {
317 func (hc *halfConn) recordHeaderLen() int {
392 …c *halfConn) decrypt(b *block) (ok bool, prefixLen int, contentType recordType, alertValue alert) {
549 func (hc *halfConn) encrypt(b *block, explicitIVLen int, typ recordType) (bool, alert) {
693 func (hc *halfConn) newBlock() *block {
708 func (hc *halfConn) freeBlock(b *block) {
716 func (hc *halfConn) splitBlock(b *block, n int) (*block, *block) {