Documentation ¶ Index ¶ type KLAPCipher func NewCipher(localSeed, remoteSeed, userHash []byte) *KLAPCipher func (c *KLAPCipher) Decrypt(seq int32, data []byte) ([]byte, error) func (c *KLAPCipher) Encrypt(data []byte) (payload []byte, seq int32, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type KLAPCipher ¶ type KLAPCipher struct { // contains filtered or unexported fields } func NewCipher ¶ func NewCipher(localSeed, remoteSeed, userHash []byte) *KLAPCipher func (*KLAPCipher) Decrypt ¶ func (c *KLAPCipher) Decrypt(seq int32, data []byte) ([]byte, error) func (*KLAPCipher) Encrypt ¶ func (c *KLAPCipher) Encrypt(data []byte) (payload []byte, seq int32, err error) Source Files ¶ View all Source files cipher.go Click to show internal directories. Click to hide internal directories.