(data []byte)
| 100 | } |
| 101 | |
| 102 | func (m *sessionStateTLS13) unmarshal(data []byte) bool { |
| 103 | *m = sessionStateTLS13{} |
| 104 | s := cryptobyte.String(data) |
| 105 | var version uint16 |
| 106 | var revision uint8 |
| 107 | return s.ReadUint16(&version) && |
| 108 | version == VersionTLS13 && |
| 109 | s.ReadUint8(&revision) && |
| 110 | revision == 0 && |
| 111 | s.ReadUint16(&m.cipherSuite) && |
| 112 | readUint64(&s, &m.createdAt) && |
| 113 | readUint8LengthPrefixed(&s, &m.resumptionSecret) && |
| 114 | len(m.resumptionSecret) != 0 && |
| 115 | unmarshalCertificate(&s, &m.certificate) && |
| 116 | s.Empty() |
| 117 | } |
| 118 | |
| 119 | func (c *Conn) encryptTicket(state []byte) ([]byte, error) { |
| 120 | if len(c.ticketKeys) == 0 { |
nothing calls this directly
no test coverage detected