MCPcopy Create free account
hub / github.com/XTLS/Go / ticketKey

Struct ticketKey

common.go:754–762  ·  view source on GitHub ↗

ticketKey is the internal representation of a session ticket key.

Source from the content-addressed store, hash-verified

752
753// ticketKey is the internal representation of a session ticket key.
754type ticketKey struct {
755 // keyName is an opaque byte string that serves to identify the session
756 // ticket key. It's exposed as plaintext in every session ticket.
757 keyName [ticketKeyNameLen]byte
758 aesKey [16]byte
759 hmacKey [16]byte
760 // created is the time at which this ticket key was created. See Config.ticketKeys.
761 created time.Time
762}
763
764// ticketKeyFromBytes converts from the external representation of a session
765// ticket key to a ticketKey. Externally, session ticket keys are 32 random

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected