0x8d2a4c8a,
},
Table3: []uint32{
- // round3
+ // round 3
0xfffa3942,
0x8771f681,
0x6d9d6122,
version uint16
isClient bool
cipherSuite uint16
- // createdAt is the generation time of the secret on the sever (which for
+ // createdAt is the generation time of the secret on the server (which for
// TLS 1.0–1.2 might be earlier than the current session) and the time at
// which the ticket was received on the client.
createdAt uint64 // seconds since UNIX epoch
//go:build ignore
-// encgen writes the helper functions for encoding. Intended to be
-// used with go generate; see the invocation in encode.go.
+// decgen writes the helper functions for decoding. Intended to be
+// used with go generate; see the invocation in decode.go.
// TODO: We could do more by being unsafe. Add a -unsafe flag?
// call of f(nil).
//
// In many cases it may be more convenient to use [Preorder], which
-// returns an iterator over the sqeuence of nodes, or [PreorderStack],
+// returns an iterator over the sequence of nodes, or [PreorderStack],
// which (like [Inspect]) provides control over descent into subtrees,
// but additionally reports the stack of enclosing nodes.
func Inspect(node Node, f func(Node) bool) {
}
if s[0] == '.' {
- // A cookie a domain attribute may start with a leading dot.
+ // A cookie domain attribute may start with a leading dot.
+ // Per RFC 6265 section 5.2.3, a leading dot is ignored.
s = s[1:]
}
last := byte('.')
// Garbage collector (GC).
//
// The GC runs concurrently with mutator threads, is type accurate (aka precise), allows multiple
-// GC thread to run in parallel. It is a concurrent mark and sweep that uses a write barrier. It is
+// GC threads to run in parallel. It is a concurrent mark and sweep that uses a write barrier. It is
// non-generational and non-compacting. Allocation is done using size segregated per P allocation
// areas to minimize fragmentation while eliminating locks in the common case.
//