ticketKey is the internal representation of a session ticket key.
| 752 | |
| 753 | // ticketKey is the internal representation of a session ticket key. |
| 754 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected