Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Obfuscator ¶
type XPlusObfuscator ¶
type XPlusObfuscator struct { Key []byte RandSrc *rand.Rand // contains filtered or unexported fields }
XPlusObfuscator obfuscates payload using one-time keys generated from hashing a pre-shared key and random salt. Packet format: [salt][obfuscated payload]
func NewXPlusObfuscator ¶
func NewXPlusObfuscator(key []byte) *XPlusObfuscator
func (*XPlusObfuscator) Deobfuscate ¶
func (x *XPlusObfuscator) Deobfuscate(in []byte, out []byte) int
Click to show internal directories.
Click to hide internal directories.