Versions in this module Expand all Collapse all v0 v0.5.1 Jan 15, 2023 Changes in this version + const ConnectionRSAKey + func Adler32(d uint32, p []byte) uint32 + func GenEnableEncryptionSignature(encryptKey []byte) ([]byte, error) + func GetConnectionRSAKey() *rsa.PrivateKey + func Hash(hsh func() hash.Hash, input ...[]byte) []byte + func RandBytes(ln int) []byte + func RandUint32(min, max uint32) uint32 + func ReverseBytes(bytes []byte) + func SHA1(input ...[]byte) []byte + type AesCipher struct + func (aec *AesCipher) Decrypt(data, tag []byte) error + func (aec *AesCipher) Encrypt(data, tag []byte) error + func (aec *AesCipher) Init(server bool, key []byte) error + type Cipher interface + Decrypt func(data, tag []byte) error + Encrypt func(data, tag []byte) error + Init func(server bool, key []byte) error + func NewCipher(version vsn.Build, sessionKey []byte, server bool) (Cipher, error) + type DummyCipher struct + func (d DummyCipher) Decrypt(data, tag []byte) error + func (d DummyCipher) Encrypt(data, tag []byte) error + func (d DummyCipher) Init(server bool, key []byte) error + type SessionKeyGenerator struct + HashFunc func() hash.Hash + Seeds [3][]byte + func NewSessionKeyGenerator(hashFunc func() hash.Hash, data []byte) *SessionKeyGenerator + func (skg *SessionKeyGenerator) Read(data []byte) (int, error)