Documentation
¶
Index ¶
- Constants
- func FastXor(dst, a, b []byte)
- func GetConn(network, address, certFile, keyFile string) (net.Conn, error)
- func GetListener(network, address, certFile, keyFile string) (net.Listener, error)
- func GetName(id []byte) string
- func GetNumber(id []byte) uint64
- func HashStr(val string) []byte
- func RandomId() ([]byte, error)
- func SlowXor(dst, a, b []byte)
Constants ¶
View Source
const ID_LEN = 16
Variables ¶
This section is empty.
Functions ¶
func FastXor ¶
func FastXor(dst, a, b []byte)
Xor 16 bytes the fastest way
From https://github.com/lukechampine/fastxor Stores (a xor b) in dst, where a, b, and dst all have length 16.
func GetListener ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.