Versions in this module Expand all Collapse all v1 v1.8.16 Jul 1, 2024 v1.8.11 Jul 1, 2024 Changes in this version + const KDFSaltConstAEADRespHeaderLenIV + const KDFSaltConstAEADRespHeaderLenKey + const KDFSaltConstAEADRespHeaderPayloadIV + const KDFSaltConstAEADRespHeaderPayloadKey + const KDFSaltConstAuthIDEncryptionKey + const KDFSaltConstVMessAEADKDF + const KDFSaltConstVMessHeaderPayloadAEADIV + const KDFSaltConstVMessHeaderPayloadAEADKey + const KDFSaltConstVMessHeaderPayloadLengthAEADIV + const KDFSaltConstVMessHeaderPayloadLengthAEADKey + var ErrNotFound = errors.New("user do not exist") + var ErrReplay = errors.New("replayed request") + func CreateAuthID(cmdKey []byte, time int64) [16]byte + func KDF(key []byte, path ...string) []byte + func KDF16(key []byte, path ...string) []byte + func NewCipherFromKey(cmdKey []byte) cipher.Block + func OpenVMessAEADHeader(key [16]byte, authid [16]byte, data io.Reader) ([]byte, bool, int, error) + func SealVMessAEADHeader(key [16]byte, data []byte) []byte + type AuthIDDecoder struct + func NewAuthIDDecoder(cmdKey []byte) *AuthIDDecoder + func (aidd *AuthIDDecoder) Decode(data [16]byte) (int64, uint32, int32, []byte) + type AuthIDDecoderHolder struct + func NewAuthIDDecoderHolder() *AuthIDDecoderHolder + func (a *AuthIDDecoderHolder) AddUser(key [16]byte, ticket interface{}) + func (a *AuthIDDecoderHolder) Match(authID [16]byte) (interface{}, error) + func (a *AuthIDDecoderHolder) RemoveUser(key [16]byte) + type AuthIDDecoderItem struct + func NewAuthIDDecoderItem(key [16]byte, ticket interface{}) *AuthIDDecoderItem